Fix bug that can occur when stripping off the prefix from the package of a
qualified class name. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1708 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -56,7 +56,8 @@ public class OneLineLogFormatter extends Formatter
|
||||
boolean legacy = (where.indexOf("LoggingLogProvider") != -1);
|
||||
if (where != null && !legacy) {
|
||||
String logger = record.getLoggerName();
|
||||
if (logger != null && where.startsWith(logger)) {
|
||||
if (logger != null && where.startsWith(logger) &&
|
||||
where.length() > logger.length()) {
|
||||
where = where.substring(logger.length()+1);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user