Skip to content
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

Reduce unused channel close log message to info #637

Merged
merged 2 commits into from
Jul 15, 2016

Conversation

alexmoore
Copy link
Contributor

@alexmoore alexmoore commented Jul 15, 2016

Fixes #628 (CLIENTS-895)

@alexmoore alexmoore changed the title Reduce unused channel close to warning Reduce unused channel close log message to warning Jul 15, 2016
@@ -136,7 +136,7 @@ public void operationComplete(ChannelFuture future) throws Exception
// the next time it's pulled from the pool.
// We record the disco for the health check.
recentlyClosed.add(new ChannelWithIdleTime(future.channel()));
logger.error("inAvailable channel closed; id:{} {}:{}",
logger.warn("Available channel closed; id:{} {}:{}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexmoore Not sure whether it should be a warning, since it is an ordinal situation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be normal, or could signify something bigger is going on with the network / application if seen in conjunction with other errors, or many of them grouped together.

https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html#WARN

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it is either INFO or DEBUG

@srgg
Copy link
Contributor

srgg commented Jul 15, 2016

👍 LGTM

@alexmoore alexmoore merged commit cf995ab into develop Jul 15, 2016
@alexmoore alexmoore deleted the 628-lower-unused-connection-closed-logging-level branch July 15, 2016 15:39
@alexmoore alexmoore changed the title Reduce unused channel close log message to warning Reduce unused channel close log message to info Jul 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants