Fix unclean backport in InternalLoggerFactory
.. which leaked in from d0912f2709
This commit is contained in:
parent
d0912f2709
commit
3c6bc0b4cb
@ -31,15 +31,8 @@ package io.netty.util.internal.logging;
|
||||
* as possible and shouldn't be called more than once.
|
||||
*/
|
||||
public abstract class InternalLoggerFactory {
|
||||
private static volatile InternalLoggerFactory defaultFactory;
|
||||
|
||||
static {
|
||||
final String name = InternalLoggerFactory.class.getName();
|
||||
InternalLoggerFactory f;
|
||||
f = newDefaultFactory(name);
|
||||
|
||||
defaultFactory = f;
|
||||
}
|
||||
private static volatile InternalLoggerFactory defaultFactory =
|
||||
newDefaultFactory(InternalLoggerFactory.class.getName());
|
||||
|
||||
@SuppressWarnings("UnusedCatchParameter")
|
||||
private static InternalLoggerFactory newDefaultFactory(String name) {
|
||||
@ -47,7 +40,6 @@ public abstract class InternalLoggerFactory {
|
||||
try {
|
||||
f = new Slf4JLoggerFactory(true);
|
||||
f.newInstance(name).debug("Using SLF4J as the default logging framework");
|
||||
defaultFactory = f;
|
||||
} catch (Throwable t1) {
|
||||
try {
|
||||
f = new Log4JLoggerFactory();
|
||||
|
Loading…
Reference in New Issue
Block a user