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

[VC-35738] Define well known log verbosity values and log less by default #617

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

wallrj
Copy link
Member

@wallrj wallrj commented Nov 12, 2024

The aims of this PR are:

  • Make it clearer to the user what the --verbosity values mean in practice.
  • Make it clear what the default --verbosity value is.
  • Make it clearer to developers which V() value to use when they add new log messages.
  • Make the V() values more consistent.
  • Reduce the number of Info log messages that the agent prints by default.

@wallrj wallrj changed the title ]VC-35738Define well known log verbosity values and log less by default WIP: [VC-35738] Define well known log verbosity values and log less by default Nov 12, 2024
@wallrj wallrj mentioned this pull request Nov 12, 2024
12 tasks
@@ -94,6 +102,7 @@ func AddFlags(fs *pflag.FlagSet) {
if f.Name == "v" {
f.Name = "log-level"
f.Shorthand = "v"
f.Usage = fmt.Sprintf("%s. 0=Info, 1=Debug, 2=Trace. Use 3-10 for even greater detail. (default: 0)", f.Usage)
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for documenting this in --help, this is much appreciated!

Copy link
Member

@maelvls maelvls left a comment

Choose a reason for hiding this comment

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

This PR doesn't change any logic, so I'm super confident that nothing will break; I don't think it needs extra testing from my end.

Base automatically changed from VC-35738/remove-logs-dot-log-2 to VC-35738/feature November 14, 2024 11:38
Signed-off-by: Richard Wall <richard.wall@venafi.com>
@wallrj wallrj changed the title WIP: [VC-35738] Define well known log verbosity values and log less by default [VC-35738] Define well known log verbosity values and log less by default Nov 14, 2024
@wallrj wallrj merged commit 1690dd9 into VC-35738/feature Nov 14, 2024
2 checks passed
@wallrj wallrj deleted the VC-35738/info-debug-trace branch November 14, 2024 11:46
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

Successfully merging this pull request may close these issues.

2 participants