Reduce web WHOIS error log level to warning

There's not much we can do when the user sends incorrect HTTP requests or cannot finish SSL handshake (the problematic requests are likely from bots anyway). Reducing the log level to warning in order to reduce spamming.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=207159118
This commit is contained in:
jianglai 2018-08-02 13:53:25 -07:00
parent a111ff0b0a
commit 3f55216b21

View file

@ -135,7 +135,7 @@ public class WebWhoisRedirectHandler extends SimpleChannelInboundHandler<HttpReq
@Override @Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
logger.atSevere().withCause(cause).log( logger.atWarning().withCause(cause).log(
(isHttps ? "HTTPS" : "HTTP") + " WHOIS inbound exception caught for channel %s", (isHttps ? "HTTPS" : "HTTP") + " WHOIS inbound exception caught for channel %s",
ctx.channel()); ctx.channel());
ChannelFuture unusedFuture = ctx.close(); ChannelFuture unusedFuture = ctx.close();