Workaround for buggy reflection. Thanks to Dennis Lundberg for discovering this problem.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@345332 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -86,7 +86,7 @@ public class Log4J12Logger implements Log, Serializable {
|
||||
// calls to Log.trace(...) onto the DEBUG level.
|
||||
|
||||
try {
|
||||
traceLevel = (Priority) Priority.class.getDeclaredField("TRACE").get(null);
|
||||
traceLevel = (Priority) Level.class.getDeclaredField("TRACE").get(null);
|
||||
} catch(Exception ex) {
|
||||
// ok, trace not available
|
||||
traceLevel = Priority.DEBUG;
|
||||
|
||||
Reference in New Issue
Block a user