Skip to content

Commit

Permalink
XmlBeansLogManager handle null logger case
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/xmlbeans/trunk@1921990 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
pjfanning committed Nov 21, 2024
1 parent 31f92ec commit 7b9d605
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static Logger getLogger(Class<?> clz) {
if (logger == null) {
if (time > LAST_TIME + SLEEP_TIME) {
LAST_TIME = time;
System.err.println("Log4J returned null logger. Falling back to No-Op logger.");
System.err.println("[XmlBeansLogManager] Log4J returned null logger. Falling back to No-Op logger.");
}
return NoOpLogger.INSTANCE;
}
Expand All @@ -51,7 +51,7 @@ public static Logger getLogger(Class<?> clz) {
if (!ExceptionUtil.isFatal(t)) {
if (time > LAST_TIME + SLEEP_TIME) {
LAST_TIME = time;
System.err.println("Issue loading Log4J. Falling back to No-Op logger.");
System.err.println("[XmlBeansLogManager] Issue loading Log4J. Falling back to No-Op logger.");
t.printStackTrace();
}
}
Expand Down

0 comments on commit 7b9d605

Please sign in to comment.