From 62e9bf08e491dcca3f2225e55e371fd79e135988 Mon Sep 17 00:00:00 2001 From: Gabriel Ciuloaica Date: Thu, 19 May 2022 10:22:24 +0300 Subject: [PATCH] removed debug log statements. --- zio-http/src/main/scala/zhttp/service/Handler.scala | 4 +--- .../src/main/scala/zhttp/service/ServerResponseWriter.scala | 2 -- .../scala/zhttp/service/server/ServerChannelInitializer.scala | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/zio-http/src/main/scala/zhttp/service/Handler.scala b/zio-http/src/main/scala/zhttp/service/Handler.scala index 158249bca0..2686133f0a 100644 --- a/zio-http/src/main/scala/zhttp/service/Handler.scala +++ b/zio-http/src/main/scala/zhttp/service/Handler.scala @@ -5,7 +5,6 @@ import io.netty.channel.{ChannelHandlerContext, SimpleChannelInboundHandler} import io.netty.handler.codec.http._ import zhttp.http._ import zhttp.logging.Logger -import zhttp.service.Handler.log import zhttp.service.server.WebSocketUpgrade import zio.{UIO, ZIO} @@ -19,7 +18,6 @@ private[zhttp] final case class Handler[R]( with WebSocketUpgrade[R] { self => override def channelRead0(ctx: Ctx, msg: HttpObject): Unit = { - log.debug(s"Message: ${msg.getClass.getSimpleName}") implicit val iCtx: ChannelHandlerContext = ctx msg match { case jReq: FullHttpRequest => @@ -50,7 +48,7 @@ private[zhttp] final case class Handler[R]( } case jReq: HttpRequest => val hasBody = canHaveBody(jReq) - log.debug(s"HasBody: ${hasBody}") + // log.debug(s"HasBody: ${hasBody}") if (hasBody) ctx.channel().config().setAutoRead(false): Unit try unsafeRun( diff --git a/zio-http/src/main/scala/zhttp/service/ServerResponseWriter.scala b/zio-http/src/main/scala/zhttp/service/ServerResponseWriter.scala index 4aea4f3e82..b6db535b05 100644 --- a/zio-http/src/main/scala/zhttp/service/ServerResponseWriter.scala +++ b/zio-http/src/main/scala/zhttp/service/ServerResponseWriter.scala @@ -5,7 +5,6 @@ import io.netty.channel.{ChannelHandlerContext, DefaultFileRegion} import io.netty.handler.codec.http._ import zhttp.http._ import zhttp.logging.Logger -import zhttp.service.ServerResponseWriter.log import zhttp.service.server.ServerTime import zio.stream.ZStream import zio.{UIO, ZIO} @@ -87,7 +86,6 @@ private[zhttp] final class ServerResponseWriter[R]( * Writes data on the channel */ private def writeData(data: HttpData, jReq: HttpRequest)(implicit ctx: Ctx): Unit = { - log.debug(s"WriteData: ${data.getClass.getSimpleName}") data match { case _: HttpData.FromAsciiString => flushReleaseAndRead(jReq) diff --git a/zio-http/src/main/scala/zhttp/service/server/ServerChannelInitializer.scala b/zio-http/src/main/scala/zhttp/service/server/ServerChannelInitializer.scala index f6dbc9549c..121eeb69d0 100644 --- a/zio-http/src/main/scala/zhttp/service/server/ServerChannelInitializer.scala +++ b/zio-http/src/main/scala/zhttp/service/server/ServerChannelInitializer.scala @@ -31,7 +31,6 @@ final case class ServerChannelInitializer[R]( // Order of handlers are critical to make this work val pipeline = channel.pipeline() - log.debug(s"Connection initialized: ${channel.remoteAddress()}") // SSL // Add SSL Handler if CTX is available val sslctx = if (cfg.sslOption == null) null else cfg.sslOption.sslContext