Skip to content

Commit

Permalink
Reduce logging
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Schohn <greg.schohn@gmail.com>
  • Loading branch information
gregschohn committed Apr 3, 2024
1 parent 1e2b11d commit 25dbe1a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ protected void initChannel(SocketChannel ch) {
}
pipeline.addLast(new HttpRequestDecoder());
pipeline.addLast(new HttpObjectAggregator(16*1024));
pipeline.addLast(new LoggingHandler(LogLevel.INFO));
pipeline.addLast(new HttpResponseEncoder());
pipeline.addLast(new LoggingHandler(LogLevel.WARN));
pipeline.addLast(makeHandlerFromResponseContext(responseBuilder));
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class NettyPacketToHttpConsumer implements IPacketFinalizingConsumer<Aggr
* Set this to of(LogLevel.ERROR) or whatever level you'd like to get logging between each handler.
* Set this to Optional.empty() to disable intra-handler logging.
*/
private static final Optional<LogLevel> PIPELINE_LOGGING_OPTIONAL = Optional.of(LogLevel.INFO);
private static final Optional<LogLevel> PIPELINE_LOGGING_OPTIONAL = Optional.empty();

public static final String BACKSIDE_HTTP_WATCHER_HANDLER_NAME = "BACKSIDE_HTTP_WATCHER_HANDLER";
public static final String CONNECTION_CLOSE_HANDLER_NAME = "CONNECTION_CLOSE_HANDLER";
Expand Down

0 comments on commit 25dbe1a

Please sign in to comment.