8000 Fix deprecation warning "constructor Slf4JLoggerFactory in class Slf4… · mirabout/postgresql-async@2a2896f · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a2896f

Browse files
committed
Fix deprecation warning "constructor Slf4JLoggerFactory in class Slf4JLoggerFactory is deprecated: see corresponding Javadoc for more information"
1 parent c597318 commit 2a2896f

File tree

1 file changed

+1
-1
lines changed
  • db-async-common/src/main/scala/com/github/mauricio/async/db/util

1 file changed

+1
-1
lines changed

db-async-common/src/main/scala/com/github/mauricio/async/db/util/NettyUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import io.netty.util.internal.logging.{InternalLoggerFactory, Slf4JLoggerFactory
2020

2121
object NettyUtils {
2222

23-
InternalLoggerFactory.setDefaultFactory(new Slf4JLoggerFactory())
23+
InternalLoggerFactory.setDefaultFactory(Slf4JLoggerFactory.INSTANCE)
2424
lazy val DefaultEventLoopGroup = new NioEventLoopGrou 3D8F p(0, DaemonThreadsFactory("db-async-netty"))
2525

2626
}

0 commit comments

Comments
 (0)
0