From 09f1327c8a7573f5e1f61026d0a203f99fe324ca Mon Sep 17 00:00:00 2001 From: Felix Schumacher Date: Tue, 25 Aug 2015 22:07:00 +0200 Subject: [PATCH] fill source entries before switching threads --- java/org/apache/juli/AsyncFileHandler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/java/org/apache/juli/AsyncFileHandler.java b/java/org/apache/juli/AsyncFileHandler.java index 0eb8e4f..0657358 100644 --- a/java/org/apache/juli/AsyncFileHandler.java +++ b/java/org/apache/juli/AsyncFileHandler.java @@ -92,6 +92,11 @@ public class AsyncFileHandler extends FileHandler { 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 { -- 1.9.1