-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 the log level of validateObject to WARN #3749
Comments
I think general business will configure the level of |
Both would be printed, but having them at specific levels means setting up alerts based on the level (eg Datadog, Pagerduty, etc) is possible. For example, we only trigger alerts for on-call when the level is ERROR, meaning something catastrophic, possibly unrecoverable, has happened. Since most people don't log production applications at the DEBUG level, those logs would be unseen. |
The thing is we wanted those to be seen so that users can take actions. Sometimes its just network, sometimes tweaking Jedis/Redis configs were enough to improve the health/performance of the application. IMO, we now go to WARN. Depending on the feedback/reaction, we'll consider DEBUG. |
Is there any reason this was leapfrogged and not included in release https://github.com/redis/jedis/releases/tag/v5.1.2? |
@kdrakon This has breaking implication. Some applications may be dependant on the logs, but they will miss out if their log level is set to ERROR. So this change is not part of a patch release and will be part of 5.2.0. If you really want, this change is available in 5.2.0-SNAPSHOT. |
There have been confusions, misunderstandings, half-understandings regarding ERROR logs in
JedisFactory#validateObject
andConnectionFactor#validateObject
.Here is a list of relevant concerns:
ConnectionFactory.validateObject
determines the connection is no longer connected and/or the ping fails #3748Unexpected end of stream
when sending a command #3100 (comment)I think, reducing the log level to WARN would resolve or at least reduce these concerns to some extent.
The text was updated successfully, but these errors were encountered: