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

daemon: silence log messages during cmdref generation #10090

Merged
merged 1 commit into from Feb 19, 2020

Conversation

tklauser
Copy link
Member

@tklauser tklauser commented Feb 7, 2020

Call genMarkdown as early as possible and extract the cmdref directory
directly from viper instead of letting initEnv populate all options
first. This avoids log messages related to kvstore when generating
cmdref.

Also move the os.Exit(0) into daemon_main.go so it is more obvious that
the agent exits after generating the command reference.

Fixes #10081

Signed-off-by: Tobias Klauser tklauser@distanz.ch


This change is Reviewable

Call genMarkdown as early as possible and extract the cmdref directory
directly from viper instead of letting initEnv populate all options
first. This avoids log messages related to kvstore when generating
cmdref.

Also move the os.Exit(0) into daemon_main.go so it is more obvious that
the agent exits after generating the command reference.

Fixes #10081

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tklauser tklauser requested a review from a team February 7, 2020 14:20
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.8.0 Feb 7, 2020
@tklauser tklauser added release-note/misc This PR makes changes that have no direct user impact. pending-review labels Feb 7, 2020
@tklauser
Copy link
Member Author

tklauser commented Feb 7, 2020

test-me-please

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 44.655% when pulling 16b3672 on pr/tklauser/silence-build-system-agent-cmdref into 1130d45 on master.

@aanm aanm added the dont-merge/wait-until-release Freeze window for current release is blocking non-bugfix PRs label Feb 7, 2020
Copy link
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

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

🚀

@aanm aanm added this to the 1.8 milestone Feb 18, 2020
@aanm aanm removed the dont-merge/wait-until-release Freeze window for current release is blocking non-bugfix PRs label Feb 18, 2020
@aanm aanm merged commit 7579af6 into master Feb 19, 2020
1.8.0 automation moved this from In progress to Merged Feb 19, 2020
@aanm aanm deleted the pr/tklauser/silence-build-system-agent-cmdref branch February 19, 2020 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
No open projects
1.8.0
  
Merged
Development

Successfully merging this pull request may close these issues.

Silence build system complaints
4 participants