Skip to content

Commit

Permalink
Merge pull request #346 from jamezp/LOGMGR-294
Browse files Browse the repository at this point in the history
[LOGMGR-294] Compare the logger class name instead of the instance to…
  • Loading branch information
jamezp authored Feb 9, 2022
2 parents 3e6eeb8 + dd96264 commit 37a697c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public System.Logger getLogger(final String name, final Module module) {
}
}
final java.util.logging.Logger logger = java.util.logging.Logger.getLogger(name);
if (!(logger instanceof org.jboss.logmanager.Logger)) {
if (!logger.getClass().getName().equals("org.jboss.logmanager.Logger")) {
if (LOGGED.compareAndSet(false, true)) {
logger.log(Level.ERROR, "The LogManager accessed before the \"java.util.logging.manager\" system property was set to \"org.jboss.logmanager.LogManager\". Results may be unexpected.");
}
Expand Down

0 comments on commit 37a697c

Please sign in to comment.