mirror of https://github.com/apache/lucene.git
SOLR-774 - fixed logging level display
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@696381 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
436fb3ef14
commit
19f94bf59f
|
@ -38,6 +38,7 @@ Optimizations
|
||||||
Bug Fixes
|
Bug Fixes
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
1. SOLR-774: Fixed logging level display (Sean Timm via Otis Gospodnetic)
|
||||||
|
|
||||||
Build
|
Build
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -227,13 +227,15 @@ public final class LogLevelSelection extends HttpServlet {
|
||||||
}
|
}
|
||||||
for (Level l : LEVELS) {
|
for (Level l : LEVELS) {
|
||||||
if (l == null) {
|
if (l == null) {
|
||||||
|
// avoid NPE
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (logger.isLoggable(l)) {
|
if (logger.isLoggable(l)) {
|
||||||
level = l;
|
// return first level loggable
|
||||||
|
return l;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return level != null ? level : Level.OFF;
|
return Level.OFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class LogWrapper
|
private static class LogWrapper
|
||||||
|
|
Loading…
Reference in New Issue