Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Fixes logging error in ConsulCache #60

Merged
merged 1 commit into from
Sep 6, 2015

Conversation

dennisgove
Copy link
Contributor

If ConsulCache loses a connection to the agent then it will get an onFailure notification. That handler logs the error and then attempts to reconnect. However, the log line is malformed as a logger.error(...) cannot accept both string arguments and a throwable. This commit fixes that by putting the message + args in a String.format(...). This allows us to call LOGGER.error(String, Throwable).

If ConsulCache loses a connection to the agent then it will get an onFailure notification. That handler logs the error and then attempts to reconnect. However, the log line is malformed as a logger.error(...) cannot accept both string arguments and a throwable. This commit fixes that by putting the message + args in a String.format(...). This allows us to call LOGGER.error(String, Throwable).
rickfast added a commit that referenced this pull request Sep 6, 2015
Fixes logging error in ConsulCache
@rickfast rickfast merged commit cbf3f60 into rickfast:master Sep 6, 2015
@rickfast
Copy link
Owner

rickfast commented Sep 6, 2015

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants