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

Do not log warnings for non-number redis metrics #181

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

mcweba
Copy link
Collaborator

@mcweba mcweba commented Apr 19, 2024

Since there are many entries when calling redis INFO which are not numbers only, a lot of warnings are logged.

log.warn("ignore field '{}' because '{}' doesnt look number-ish enough", key, valueStr);
if(log.isTraceEnabled()) {
log.trace("ignore field '{}' because '{}' doesnt look number-ish enough", key, valueStr);
}
Copy link
Member

Choose a reason for hiding this comment

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

(trivial) The logging guard is superfluous in this case :)

@mcweba mcweba merged commit 1240afd into develop Apr 19, 2024
3 checks passed
@mcweba mcweba deleted the feature/redismonitor_logs branch April 19, 2024 09:13
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.

2 participants