-
Notifications
You must be signed in to change notification settings - Fork 117
[feat] Add command line option for increasing the verbosity level of output #650
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
This PR adds the option to increase the verbosity level of the PrettyPrinter. However, there is only one call to printer.debug and there is on call to printer.verbose in the entire code. The former is related to a module not being properly loaded, which is difficult to reproduce, since we do have correct checks on ReFrame. I am not sure if it is part of the issue to also add the printer.debug and printer.verbose calls into the code.
92d1035 to
8022555
Compare
|
Hello @victorusu, Thank you for updating! Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide Comment last updated on January 23, 2019 at 23:07 Hours UTC |
Codecov Report
@@ Coverage Diff @@
## master #650 +/- ##
==========================================
- Coverage 91.73% 91.73% -0.01%
==========================================
Files 76 76
Lines 9302 9326 +24
==========================================
+ Hits 8533 8555 +22
- Misses 769 771 +2
Continue to review full report at Codecov.
|
vkarak
left a comment
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.
I think that by using the undocumented public fields of logging.Handler we will have a more straightforward implementation. We already use level when we hijack the setLevel method. I do also believe that the logging package is not extremely well documented in any case. We always had to dig into its code to understand what exactly goes on.
omlins
left a comment
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.
It looks good to me apart from the changes @vkarak requested.
vkarak
left a comment
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.
Almost there. Could you also fix the PEP8 issues as well?
- `inc_verbosity()` moved to the LoggerAdapter - Fix a couple of bugs - Fix coding style issues
This PR adds the option to increase the verbosity level of the
PrettyPrinter. However, there is only one call to printer.debug and
there is on call to printer.verbose in the entire code. The former is
related to a module not being properly loaded, which is difficult to
reproduce, since we do have correct checks on ReFrame.
I am not sure if it is part of the issue to also add the printer.debug
and printer.verbose calls into the code.