Issue #1475 - some code cleanup

This commit is contained in:
Joakim Erdfelt 2017-04-14 13:03:17 -07:00
parent e598f5da14
commit 19f28a5a8c
1 changed files with 2 additions and 8 deletions

View File

@ -756,7 +756,7 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
if (_logger == null)
{
_logger = Log.getLogger(ContextHandler.class.getName() + getLogName());
_logger = Log.getLogger(ContextHandler.class.getName() + getLogNameSuffix());
}
ClassLoader old_classloader = null;
@ -799,7 +799,7 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
}
}
private String getLogName()
private String getLogNameSuffix()
{
// Use display name first
String log_name = getDisplayName();
@ -823,12 +823,6 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
}
}
if (StringUtil.isBlank(log_name))
{
// still blank?
return "";
}
// Replace bad characters.
return '.' + log_name.replaceAll("\\W", "_");
}