Don't call reset if the default LngManager is in use
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1005802 13f79535-47bb-0310-9956-
ffa450edef68
*/
public static void release(
@SuppressWarnings("unused") ClassLoader classLoader) {
- // JULI's log manager looks at the current classLoader
- LogManager.getLogManager().reset();
+ // JULI's log manager looks at the current classLoader, the default
+ // implementation does not so calling reset in that case will break
+ // things
+ if (!LogManager.getLogManager().getClass().getName().equals(
+ "java.util.logging.LogManager")) {
+ LogManager.getLogManager().reset();
+ }
}