Author: markt
Date: Fri Sep 18 13:27:36 2015
New Revision: 1703842
URL: http://svn.apache.org/viewvc?rev=1703842&view=rev
Log:
Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=58412
Ensure correct method and package names are logged.
Modified:
tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java
Modified: tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java?rev=1703842&r1=1703841&r2=1703842&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java (original)
+++ tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java Fri Sep 18 13:27:36
2015
@@ -99,6 +99,11 @@ public class AsyncFileHandler extends Fi
if (!isLoggable(record)) {
return;
}
+ if (record != null) {
+ // fill source entries, before we hand the record over to another
+ // thread with another class loader
+ record.getSourceMethodName();
+ }
LogEntry entry = new LogEntry(record,this);
boolean added = false;
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]