You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ps...@apache.org on 2007/04/21 05:05:52 UTC
svn commit: r530973 -
/logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/spi/LoggingEvent.java
Author: psmith
Date: Fri Apr 20 20:05:51 2007
New Revision: 530973
URL: http://svn.apache.org/viewvc?view=rev&rev=530973
Log:
Port portion of revision 310506 of LoggingEvent from trunk(1.3) so that when fqnOfCategoryClass is
null, no LocationInfo object is automatically created.
Reviewed by: Curt Arnold
Modified:
logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/spi/LoggingEvent.java
Modified: logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/spi/LoggingEvent.java
URL: http://svn.apache.org/viewvc/logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/spi/LoggingEvent.java?view=diff&rev=530973&r1=530972&r2=530973
==============================================================================
--- logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/spi/LoggingEvent.java (original)
+++ logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/spi/LoggingEvent.java Fri Apr 20 20:05:51 2007
@@ -242,7 +242,7 @@
information is cached for future use.
*/
public LocationInfo getLocationInformation() {
- if(locationInfo == null) {
+ if(locationInfo == null && fqnOfCategoryClass != null) {
locationInfo = new LocationInfo(new Throwable(), fqnOfCategoryClass);
}
return locationInfo;
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org