tolerate null caller in Logger.log

This commit is contained in:
Joel Dice 2009-04-25 20:14:29 -06:00
parent 630fde86f7
commit 4091e871a7

View File

@ -113,7 +113,8 @@ public class Logger {
if (level.intValue() < getEffectiveLevel().intValue()) {
return;
}
LogRecord r = new LogRecord(name, caller.getName(), level, message,
LogRecord r = new LogRecord
(name, caller == null ? "<unknown>" : caller.getName(), level, message,
exception);
publish(r);
}