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:
Otis Gospodnetic 2008-09-17 18:02:07 +00:00
parent 436fb3ef14
commit 19f94bf59f
2 changed files with 5 additions and 2 deletions

View File

@ -38,6 +38,7 @@ Optimizations
Bug Fixes
----------------------
1. SOLR-774: Fixed logging level display (Sean Timm via Otis Gospodnetic)
Build
----------------------

View File

@ -227,13 +227,15 @@ public final class LogLevelSelection extends HttpServlet {
}
for (Level l : LEVELS) {
if (l == null) {
// avoid NPE
continue;
}
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