Skip to content

Commit

Permalink
Merge pull request http4s#6497 from RafalSumislawski/logging-handler
Browse files Browse the repository at this point in the history
Set LoggingHandler in NettyTestServer to the default DEBUG level
  • Loading branch information
armanbilge authored Jun 26, 2022
2 parents 3d7d05e + 65194ba commit 0e2d067
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import io.netty.channel.nio.NioEventLoopGroup
import io.netty.channel.socket.nio.NioServerSocketChannel
import io.netty.channel.socket.nio.NioSocketChannel
import io.netty.handler.codec.http._
import io.netty.handler.logging.LogLevel
import io.netty.handler.logging.LoggingHandler
import io.netty.handler.ssl.SslHandler
import org.http4s.Uri
Expand Down Expand Up @@ -75,7 +74,7 @@ object NettyTestServer {
.channelFactory(new ChannelFactory[NioServerSocketChannel] {
override def newChannel(): NioServerSocketChannel = new NioServerSocketChannel()
})
.handler(new LoggingHandler(LogLevel.INFO))
.handler(new LoggingHandler())
.childHandler(new ChannelInitializer[NioSocketChannel]() {
def initChannel(ch: NioSocketChannel): Unit = {
logger.trace(s"Accepted new connection from [${ch.remoteAddress()}].")
Expand Down

0 comments on commit 0e2d067

Please sign in to comment.