-
Notifications
You must be signed in to change notification settings - Fork 983
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 log clutter #4477
base: v2.x
Are you sure you want to change the base?
Reduce log clutter #4477
Conversation
…rs only (= 1) or errors & warnings (= 2) in proxysql.cnf; default is errors, warnings & info (= 3)
Automated message: PR pending admin approval for build testing |
Hi @blaz-a . Thank you for the PR. In #4478 (comment) I commented why I am against filtering a specific log entry, but the argument can be generalized.
Please note that these are not debug messages: debug messages are not even present in Release builds. We are aware that some part of ProxySQL codebase can generate excessive verbosity, and there are variables that control such verbosity like I think we can consider applying general filtering only if every call to |
Hello @renecannao ! I agree with your point on usefulness of log messages and should therefore be enabled/shown by default. However there might be cases where they are not needed and knowledgeable user should be given an option to reduce output verbosity. Approaching this at specific log levels seems the most common way of achieving this. This has been requested before here, I merely implemented the change. My PR maintains status quo - nothing changes unless the user explicitly modifies the proxysql.cnf setting and knowingly reduces log verbosity. On the subject of keeping track of errors: PR only suppresses text output - the rest of the code is kept intact so that Prometheus counters etc. get updated accordingly. This means the tell-tale signs that attention is required are still there, it's just that log output that potentially gets reduced. |
Can one of the admins verify this patch? |
Reduce log clutter by setting console_logging_verbosity_level to "errors only" (by setting console_logging_verbosity_level= 1) or "errors & warnings" (= 2) in proxysql.cnf; default is "errors, warnings & info" (= 3)