Skip to content

Commit 1964733

Browse files
authored
Ask pylint to check lazy logging (#536)
Using lazy % formatting in logging functions provides better thread safety as string evaluation is done in the logging module.
1 parent f9a8df9 commit 1964733

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: .pylintrc

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
enable=
55
indexing-exception,
66
old-raise-syntax,
7+
logging-not-lazy,
78

89
# List of checkers and warnings to disable.
910
# TODO: Shrink this list to as small as possible.

0 commit comments

Comments
 (0)