Issue #1475 - some code cleanup
This commit is contained in:
parent
e598f5da14
commit
19f28a5a8c
|
@ -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", "_");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue