-
Notifications
You must be signed in to change notification settings - Fork 25
Add verbose log level for filenames being bundled #496
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
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I see copious amounts of logging output when setting -vv
. Less on -v
. And normal logging by default.
minor question; afaik VERBOSE
isn't a standard log level. Should we be utilizing TRACE
somehow?
@@ -135,7 +135,7 @@ def server_args(func): | |||
type=click.Path(exists=True, file_okay=True, dir_okay=False), | |||
help="The path to trusted TLS CA certificates.", | |||
) | |||
@click.option("--verbose", "-v", is_flag=True, help="Print detailed messages.") | |||
@click.option("--verbose", "-v", count=True, help="Enable verbose output. Use -vv for very verbose (debug) output.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meant to hit approve...
I thought about that, but it didn't feel like trace output? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validated. Deployed each content type + manifests with -v
and -vv
. All content deployed and shows appropriate log level ([VERBOSE] and [DEBUG]).
This PR adds a new log level, and emits messages at that level for each file that is added to a bundle. The new level is used when
-v
is present on the command line; use-vv
for full debug logging.Intent
Fixes #363
Type of Change
Approach
Introduced a custom log level
VERBOSE
betweenINFO
andDEBUG
, and configure log level appropriately based on the verbosity. Change verbosity from a bool/flag to a counter/int.Automated Tests
Our tests don't validate logged messages.
Directions for Reviewers
Deploy various content types (notebook, app/API, and manifest) with no verbosity,
-v
, and-vv
. With-v
, and-vv
, you should see messages logged at levelVERBOSE
showing the files added to the bundle.Checklist