Switch to using named logging inside cmdline folder
Review Request #11954 — Created Jan. 21, 2022 and submitted
Information | |
---|---|
gdehal | |
Review Board | |
release-4.0.x | |
4902 | |
Reviewers | |
reviewboard | |
Instantiate a logger and use that instead of calling logging function in cmdline folder
Tested by calling the scripts in the command line and verified that the error logs were being printed when using
logger.error
instead oflogging.error
.
Summary |
---|
Description | From | Last Updated |
---|---|---|
Please add the bug number to the "Bugs" field. |
|
|
Indentation on these lines needs to be changed to match (logger is one character shorter than logging). |
|
|
Can you revert the change to this file? |
|
|
Python wants two blank lines around top-level items in a file. |
|
|
Indentation on this line needs to be changed to match (logger is one character shorter than logging). Let's also put … |
|
|
Indentation on this line needs to be changed to match (logger is one character shorter than logging). Let's also put … |
|
|
W291 trailing whitespace |
![]() |
|
W291 trailing whitespace |
![]() |
Commits: |
|
||||||
---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+24 -12) |
Checks run (2 succeeded)
-
Here's an example of a review request doing one of these named logger changes with a more fleshed out description / testing done: https://reviews.reviewboard.org/r/11811/
Description: |
|
||||||||
---|---|---|---|---|---|---|---|---|---|
Testing Done: |
|
||||||||
Commits: |
|
||||||||
Diff: |
Revision 3 (+22 -16) |
Checks run (2 succeeded)
-
-
-
reviewboard/cmdline/rbext.py (Diff revision 3) Indentation on these lines needs to be changed to match (
logger
is one character shorter thanlogging
). -
-
reviewboard/cmdline/rbssh.py (Diff revision 3) Python wants two blank lines around top-level items in a file.
-
reviewboard/cmdline/rbssh.py (Diff revision 3) Indentation on this line needs to be changed to match (
logger
is one character shorter thanlogging
).Let's also put the % on the second line rather than the first:
logger.error('...' % username)
-
reviewboard/cmdline/rbssh.py (Diff revision 3) Indentation on this line needs to be changed to match (
logger
is one character shorter thanlogging
).Let's also put the % on the second line rather than the first.
Change Summary:
Addressed code review comments
Commits: |
|
||||||||
---|---|---|---|---|---|---|---|---|---|
Bugs: |
|
||||||||
Diff: |
Revision 4 (+32 -16) |
Checks run (1 failed, 1 succeeded)
flake8
Commits: |
|
||||||
---|---|---|---|---|---|---|---|
Diff: |
Revision 5 (+32 -16) |