Replacing non-named usages to use names logging in files in reviewboard.notifications
Review Request #11396 — Created Jan. 22, 2021 and submitted
This commit is replacing non-named usages in reviewboard/notifications to use
named logging instead. The purpose of this change is to automatically include
more information about the module where the logging message came from so that
the messages can be of more use when diagnosing problems from logs.
I ran the unit tests under reviewboard/notifications/tests by running
./tests/runtests.py reviewboard.notifications.tests
and confirmed that all
162 tests ran without fail.
Summary | ID | Author |
---|---|---|
3d387ef246879fc77562bd1e538f4562cb16f2d5 | anahita-m | |
fa90587358957685d770fc673b75f939e8216a5c | anahita-m |
Description | From | Last Updated |
---|---|---|
Can you wrap your description and testing done to be 80 characters in width? |
david | |
If you are only importing logger from reviewboard.notifications.webhooks shouldn't you import it once at the top of the file? |
ryankang | |
Please put that second blank line back. |
david | |
Each of these blank lines should be two. |
david | |
Please put this blank line back. |
david | |
We don't need a blank line here. |
david | |
This blank line can go away. |
david | |
Please add another blank line here. |
david | |
E101 indentation contains mixed spaces and tabs |
reviewbot | |
W191 indentation contains tabs |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E101 indentation contains mixed spaces and tabs |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E101 indentation contains mixed spaces and tabs |
reviewbot | |
W191 indentation contains tabs |
reviewbot | |
W191 indentation contains tabs |
reviewbot | |
E101 indentation contains mixed spaces and tabs |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E101 indentation contains mixed spaces and tabs |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
Indentation will need to be fixed here, since logger is one character shorter than logging. Please check all your changed … |
david | |
Please revert the changes to these lines. |
david | |
These lines need to be dedented one space, because "logger" is one character shorter than "logging". |
david | |
Dedent one space. |
david | |
Dedent one space. |
david | |
Dedent one space. |
david | |
Dedent one space. |
david | |
Dedent one space. |
david | |
Dedent one space. |
david |
- Groups:
- Testing Done:
-
~ I ran the unit tests under reviewboard/notifications/tests and confirmed that all 162 tests ran without fail.
~ I ran the unit tests under reviewboard/notifications/tests by running
./tests/runtests.py reviewboard.notifications.tests
and confirmed that all 162 tests ran without fail.
- Commits:
-
Summary ID Author 44c1e3fcb19b8ff62372c0e68fc48011a6c49a1c anahita-m bdab39b26ba2a4e812aade7404ad2cbe7c886e1d anahita-m
Checks run (2 succeeded)
-
This looks pretty good so far. I have a bunch of comments but they all relate to the placement of blank lines. The most confusing part of it is that Python specifies that at the top-level scope there should be two blank lines between definitions.
-
-
-
-
-
-
-
- Commits:
-
Summary ID Author bdab39b26ba2a4e812aade7404ad2cbe7c886e1d anahita-m a0fabcec3e461847f60067342e03d607bd955993 anahita-m
Checks run (1 failed, 1 succeeded)
flake8
- Commits:
-
Summary ID Author a0fabcec3e461847f60067342e03d607bd955993 anahita-m 20dd6e8ed1657cad1731740b7b2b2b43b3d9414f anahita-m
- Commits:
-
Summary ID Author 20dd6e8ed1657cad1731740b7b2b2b43b3d9414f anahita-m 812da5d3aa499bf29c87297c8172a80add2c1617 anahita-m
Checks run (1 failed, 1 succeeded)
flake8
- Commits:
-
Summary ID Author 812da5d3aa499bf29c87297c8172a80add2c1617 anahita-m 35e775935ce42274cb5b4ccf567da9620e5abc49 anahita-m
Checks run (2 succeeded)
- Testing Done:
-
~ I ran the unit tests under reviewboard/notifications/tests by running
./tests/runtests.py reviewboard.notifications.tests
and confirmed that all 162 tests ran without fail.~ I ran the unit tests under reviewboard/notifications/tests by running
+ ./tests/runtests.py reviewboard.notifications.tests
and confirmed that all 162 tests ran without fail.
- Bugs:
- Change Summary:
-
fixing description and testing done text wrap around 80 chars
- Commits:
-
Summary ID Author 35e775935ce42274cb5b4ccf567da9620e5abc49 anahita-m 613df8f5030d136b519bae0de9e9fc812a2533f6 anahita-m
Checks run (2 succeeded)
- Description:
-
~ This commit is replacing non-named usages in reviewboard/notifications to use named logging instead. The purpose of this change is to automatically include more information about the module where the logging message came from so that the messages can be of more use when diagnosing problems from logs.
~ This commit is replacing non-named usages in reviewboard/notifications to use
+ named logging instead. The purpose of this change is to automatically include + more information about the module where the logging message came from so that + the messages can be of more use when diagnosing problems from logs. - Testing Done:
-
I ran the unit tests under reviewboard/notifications/tests by running
~ ./tests/runtests.py reviewboard.notifications.tests
and confirmed that all 162 tests ran without fail.~ ./tests/runtests.py reviewboard.notifications.tests
and confirmed that all+ 162 tests ran without fail.