-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In particular, use the logging library's native string interpolation because it is more performant... it is only evaluated if the log line is hit, versus building the string ourselves means the string is always built, regardless of the log level. Additionally, switched some `log.fatal()` to `log.exception()` so that it picks up the exception details. This lowers the logging level by one step, since `log.exception()` is level `ERROR` vs the rarely-used `log.fatal()` is equal to level `CRITICAL`. But looking at the command line args, the `quiet` option sets the logger to `WARNING` so both `ERROR` / `CRITICAL` are always still hit.
- Loading branch information
1 parent
4206dba
commit 7d6f12e
Showing
1 changed file
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters