odin slf4j bridge catch all for asynchttpclient

This commit is contained in:
Rohan Sircar 2020-08-29 13:28:42 +05:30
parent af065a7589
commit 1c2e3fb19f

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]()