Skip to content

Commit

Permalink
[LOGMGR-260] System loggers run with level ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Marschall committed Sep 5, 2019
1 parent e2d47bb commit b4921b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/main/java/org/jboss/logmanager/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public static Logger getLogger(final String name, final String bundleName) {
Logger(final LoggerNode loggerNode, final String name) {
// Don't set up the bundle in the parent...
super(name, null);
// We maintain our own level
super.setLevel(Level.ALL);
// We have to propagate our level to an internal data structure in the superclass
super.setLevel(loggerNode.getLevel());
this.loggerNode = loggerNode;
}

Expand Down Expand Up @@ -121,6 +121,8 @@ public Filter getFilter() {
* log level reflects an older effective level than the actual level).
*/
public void setLevel(Level newLevel) throws SecurityException {
// We have to propagate our level to an internal data structure in the superclass
super.setLevel(newLevel);
LogContext.checkAccess();
loggerNode.setLevel(newLevel);
}
Expand Down

0 comments on commit b4921b7

Please sign in to comment.