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

Log level mismatch between documentation and Sequencer tool #386

Open
DollyGodet opened this issue Jul 7, 2022 · 4 comments
Open

Log level mismatch between documentation and Sequencer tool #386

DollyGodet opened this issue Jul 7, 2022 · 4 comments

Comments

@DollyGodet
Copy link

In the documentation, it is specified that the level of a log message with category system.config.receive should be Level.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 a system.config.receive category and a Level.INFO level. This does not match the documentation.

There is other similar mismatches :

  • broken_config test validates that it received a log message with category system.config.apply and Level.INFO level, but the documentation specified that it should be a Level.NOTICE level.
  • broken_config test validates that it has receive a log message with category system.config.parse and Level.INFO level, but the documentation specified that it should be a Level.DEBUG level.
  • extra_config test has the same mismatches.
@noursaidi
Copy link
Collaborator

@grafnu @DollyGodet @pisuke any views as to which should be correct?

In my mind, 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, and then INFO for config apply, which matches what is in the documentation.

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?

@pisuke
Copy link
Collaborator

pisuke commented Jul 12, 2022

Hi @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.

@grafnu
Copy link
Collaborator

grafnu commented Jul 12, 2022 via email

@noursaidi
Copy link
Collaborator

I confused the levels of NOTICE and INFO! The levels you've suggested sound good to me

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

No branches or pull requests

4 participants