-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: reduce error logging on connection resets #424
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of nits/suggestions, other than that LGTM
logger.info(format("Handling exception: " + cause + " (caused by: " + realCause + ")")); | ||
final Throwable realCause = extractCause(cause, 0); | ||
if (logger.isDebugEnabled()){ | ||
logger.debug(format("Handling exception: " + cause + " (caused by: " + realCause + ")"), cause); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we should also change this to info
if debug
is enabled on the logger to be consistent with the above log message? I know this was what we had before, but it seems a little unusual to change the log level of a logging statement just because the amount of detail in the message has changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense, thanks
ctx.flush(); | ||
ctx.close(); | ||
} | ||
} | ||
|
||
private boolean silentException(final Throwable ex) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Maybe silenceException
or isNoisyException
?
Currently Beats input logs verbosely on a remote end closing the connection:
we are reducing those 2 log entries into:
full trace is still visible when
debug
level logging enabled:resolves #407
resolves #348