Commit 0679d436 authored by Andy Wilkinson's avatar Andy Wilkinson

Use uninstall to remove SL4FJBridgeHandler

Closes gh-8933
parent 85d4647b
/* /*
* Copyright 2012-2017 the original author or authors. * Copyright 2012-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -74,13 +74,7 @@ public abstract class Slf4JLoggingSystem extends AbstractLoggingSystem { ...@@ -74,13 +74,7 @@ public abstract class Slf4JLoggingSystem extends AbstractLoggingSystem {
private void removeJdkLoggingBridgeHandler() { private void removeJdkLoggingBridgeHandler() {
try { try {
if (isBridgeHandlerAvailable()) { if (isBridgeHandlerAvailable()) {
try { SLF4JBridgeHandler.uninstall();
SLF4JBridgeHandler.removeHandlersForRootLogger();
}
catch (NoSuchMethodError ex) {
// Method missing in older versions of SLF4J like in JBoss AS 7.1
SLF4JBridgeHandler.uninstall();
}
} }
} }
catch (Throwable ex) { catch (Throwable ex) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment