Skip to content

Commit

Permalink
actually increment counter
Browse files Browse the repository at this point in the history
  • Loading branch information
argha-c committed Apr 17, 2023
1 parent 721e9e0 commit 31dc055
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws E
// We intentionally avoid propagating this up the pipeline, to avoid verbose disk logging.
if (cause.getCause() instanceof SSLHandshakeException) {
logger.debug("SSL handshake failed on channel {}", ctx.channel(), cause);
registry.counter("server.ssl.exception.swallowed", "cause", "SSLHandshakeException");
registry.counter("server.ssl.exception.swallowed", "cause", "SSLHandshakeException").increment();
} else {
super.exceptionCaught(ctx, cause);
}
Expand Down

0 comments on commit 31dc055

Please sign in to comment.