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

Fixup --log-filters documentation and examples #618

Closed
wants to merge 0 commits into from
Closed

Conversation

romanz
Copy link
Owner

@romanz romanz commented Nov 12, 2021

Drop -v and --verbose mentions.

@romanz
Copy link
Owner Author

romanz commented Nov 12, 2021

Following #606 (comment)

@romanz
Copy link
Owner Author

romanz commented Nov 12, 2021

cc: @Kixunil @k3tan172

Copy link
Contributor

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

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

I think it'd be good to add a table like this somewhere:

Log level Old verbose value Description
ERROR 0 Only fatal errors
WARN 1 Things that could indicate serious problems
INFO 2 Various significant events and suggestions
DEBUG 3 Details that could be useful when debugging - only use when debugging!
TRACE 4 Very detailed information - only use when debugging!

doc/upgrading.md Outdated
@@ -2,6 +2,7 @@

* If you use `verbose` (or `-v` argument), switch to `log_filters` (or `RUST_LOG` environment variable).
Please note that it allows to set per-module filters, but module naming is considered unstable.
If you have used `-vv` (the default setting), switch to `--log-filters INFO`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should say "the value suggested in the documentation" instead of "the default setting" since the default was ERROR.

@romanz romanz force-pushed the fix-verbosity branch 2 times, most recently from 0d8fc34 to fdffd3c Compare November 12, 2021 16:19
Copy link
Contributor

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

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

Looks good.

@romanz romanz closed this Nov 12, 2021
@romanz romanz deleted the fix-verbosity branch November 12, 2021 18:00
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