When logging stack traces, don't log the message separately and then have
the exception repeat it, just start logging the exception on the first log line. It's compact and it allows lgrep to properly filter out whole stack traces. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1485 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -78,7 +78,7 @@ public class DefaultLogProvider implements LogProvider
|
||||
{
|
||||
Integer tlevel = (Integer)_levels.get(moduleName);
|
||||
if (level >= getLevel(moduleName)) {
|
||||
System.err.println(formatEntry(moduleName, level, t.getMessage()));
|
||||
System.err.print(formatEntry(moduleName, level, ""));
|
||||
t.printStackTrace(System.err);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user