-
Notifications
You must be signed in to change notification settings - Fork 48
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
Log level mismatch between documentation and Sequencer tool #386
Comments
@grafnu @DollyGodet @pisuke any views as to which should be correct? In my mind, The reason for this is the state message should already indirectly communicate this, and to avoid alert overload Maybe parse could be replaced with config apply error? |
Hi @noursaidi I also agree it makes sense to have INFO for config apply. |
I'm not exactly sure what you're saying, but the ordering goes DEBUG < INFO
< NOTICE
With that, the statement "INFO for all the config apply/parse/receive
events was excessive, and I'm leaning towards DEBUG or NOTICE log level for
receive & successful parse events" doesn't quite make sense to me.
Nobody is going to alert on INFO, I doubt anybody would alert on NOTICE
either... that's just more "if you're paying attention to this here's
something to look for". INFO messages pretty much get lots in the noise
but are useful to have around by default for triage. DEBUG is only if
you're a dev actively working on a problem. With all this, I'd recommend:
- *receive*: INFO -- kinda want to know it happens, but not really
significant.
- *parse*: DEBUG -- only something to pay attention to if it actually
goes wrong
- *apply*: NOTICE -- the "main event" of this... this implies everything
else was successful
Any deviation from "as expected" would be then be warning/error as
appropriate.
…On Tue, Jul 12, 2022 at 6:28 AM Francesco Anselmo ***@***.***> wrote:
Hi @noursaidi <https://github.com/noursaidi> I also agree it makes sense
to have INFO for config apply.
I think that receive should be NOTICE and parse should be DEBUG.
—
Reply to this email directly, view it on GitHub
<#386 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIEPD4354P2QYNVVR5A3ADVTVXIZANCNFSM525TOVCQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I confused the levels of NOTICE and INFO! The levels you've suggested sound good to me |
In the documentation, it is specified that the level of a log message with category
system.config.receive
should beLevel.DEBUG
.In the Sequencer tool (
com.google.daq.mqtt.validator.validations.ConfigValidator#broken_config
), broken_config test validates that it received a log message with asystem.config.receive
category and aLevel.INFO
level. This does not match the documentation.There is other similar mismatches :
system.config.apply
andLevel.INFO
level, but the documentation specified that it should be aLevel.NOTICE
level.system.config.parse
andLevel.INFO
level, but the documentation specified that it should be aLevel.DEBUG
level.The text was updated successfully, but these errors were encountered: