Skip to content

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 force-pushed the VC-35738/info-debug-trace branch from 48372bd to 7d19d0a Compare November 12, 2024 17:14
@wallrj wallrj mentioned this pull request Nov 12, 2024
12 tasks
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
@wallrj wallrj force-pushed the VC-35738/info-debug-trace branch from 7d19d0a to 1402d52 Compare November 14, 2024 11:41
@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
@wallrj wallrj mentioned this pull request Nov 20, 2024
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