You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2015/10/14 22:01:03 UTC
logging-log4j2 git commit: [LOG4J2-1160] LoggerContext logs with
FATAL priority when unable to register a shutdown hook. Change log event from
FATAL to ERROR.
Repository: logging-log4j2
Updated Branches:
refs/heads/master 258b7e25c -> e17eeb1e4
[LOG4J2-1160] LoggerContext logs with FATAL priority when unable to
register a shutdown hook. Change log event from FATAL to ERROR.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/e17eeb1e
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/e17eeb1e
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/e17eeb1e
Branch: refs/heads/master
Commit: e17eeb1e48d9be14ec93b996c0291bcadc091204
Parents: 258b7e2
Author: ggregory <gg...@apache.org>
Authored: Wed Oct 14 13:00:58 2015 -0700
Committer: ggregory <gg...@apache.org>
Committed: Wed Oct 14 13:00:58 2015 -0700
----------------------------------------------------------------------
.../src/main/java/org/apache/logging/log4j/core/LoggerContext.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/e17eeb1e/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
index 841080c..56a5cdc 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
@@ -268,7 +268,7 @@ public class LoggerContext extends AbstractLifeCycle implements org.apache.loggi
}
});
} catch (final IllegalStateException e) {
- LOGGER.fatal(SHUTDOWN_HOOK_MARKER,
+ LOGGER.error(SHUTDOWN_HOOK_MARKER,
"Unable to register shutdown hook because JVM is shutting down.", e);
} catch (final SecurityException e) {
LOGGER.error(SHUTDOWN_HOOK_MARKER, "Unable to register shutdown hook due to security restrictions",