File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -200,9 +200,9 @@ def format(self, record: LogRecord) -> str:
200
200
if "{asctime}" in self .fmt or "%(asctime)s" in self .fmt :
201
201
now = time .localtime ()
202
202
# pylint: disable=line-too-long
203
- vals [
204
- "asctime "
205
- ] = f" { now . tm_year } - { now . tm_mon :02d } - { now . tm_mday :02d } { now . tm_hour :02d } : { now . tm_min :02d } : { now . tm_sec :02d } "
203
+ vals ["asctime" ] = (
204
+ f" { now . tm_year } - { now . tm_mon :02d } - { now . tm_mday :02d } { now . tm_hour :02d } : { now . tm_min :02d } : { now . tm_sec :02d } "
205
+ )
206
206
207
207
if self .defaults :
208
208
for key , val in self .defaults .items ():
@@ -433,6 +433,7 @@ def emit(self, record: LogRecord) -> None:
433
433
self .doRollover ()
434
434
super ().emit (record )
435
435
436
+
436
437
class NullHandler (Handler ):
437
438
"""Provide an empty log handler.
438
439
You can’t perform that action at this time.
0 commit comments