Browse Source

odin slf4j bridge catch all for asynchttpclient

master
Rohan Sircar 7 months ago
parent
commit
1c2e3fb19f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main/scala/org/slf4j/impl/StaticLoggerBuilder.scala

+ 2
- 1
src/main/scala/org/slf4j/impl/StaticLoggerBuilder.scala View File

@ -20,7 +20,8 @@ class StaticLoggerBinder extends OdinLoggerBinder[IO] {
val loggers: PartialFunction[String, Logger[IO]] = {
case "some.external.package.SpecificClass" =>
consoleLogger[IO](minLevel = Level.Warn) //disable noisy external logs
case "org.asynchttpclient.netty.channel.DefaultChannelPool" =>
case asyncHttpClient
if asyncHttpClient.startsWith("org.asynchttpclient.netty") =>
consoleLogger[IO](minLevel = Level.Warn)
case _ => //if wildcard case isn't provided, default logger is no-op
consoleLogger[IO]()

Loading…
Cancel
Save