8000 Implement --debug and --trace, adding to --verbose. by dimitri · Pull Request #97 · dimitri/pgcopydb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement --debug and --trace, adding to --verbose. #97

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

Merged
merged 1 commit into from
Sep 7, 2022

Conversation

dimitri
Copy link
Owner
@dimitri dimitri commented Sep 7, 2022

Some users are confused by the Unix way of using -vvv to mean “very, very verbose” and accumulate verbosity that way. Introduce --debug as a synonym to -vv and --trace as a synonym to -vvv.

The only drawback to also implement --debug and --trace when we could use --verbose several times is to use yet another short option letter. It seems to be worth it given the user feedback though.

Also introduce a new log level NOTICE between INFO (default verbosity) and DEBUG (extra verbosity) so that we have a new verbose setting that makes sense. The log_notice() macro isn't used much as yet, following patches and PRs will introduce more usage for it.

Some users are confused by the Unix way of using -vvv to mean “very, very
verbose” and accumulate verbosity that way. Introduce --debug as a synonym
to -vv and --trace as a synonym to -vvv.

The only drawback to also implement --debug and --trace when we could use
--verbose several times is to use yet another short option letter. It seems
to be worth it given the user feedback though.

Also introduce a new log level NOTICE between INFO (default verbosity) and
DEBUG (extra verbosity) so that we have a new verbose setting that makes
sense. The log_notice() macro isn't used much as yet, following patches and
PRs will introduce more usage for it.
@dimitri dimitri merged commit 5b591c1 into main Sep 7, 2022
@dimitri dimitri deleted the feature/logging-options branch September 7, 2022 13:19
hanefi pushed a commit to hanefi/pgcopydb that referenced this pull request Feb 21, 2025
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.

1 participant
0