mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
tolerate null caller in Logger.log
This commit is contained in:
parent
630fde86f7
commit
4091e871a7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user