mirror of https://github.com/python/cpython
bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103)
This commit is contained in:
parent
1cbb88736c
commit
850aefc2c6
|
@ -5451,7 +5451,8 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
|
||||||
p = os.path.join(wd, '%s.log' % prefix)
|
p = os.path.join(wd, '%s.log' % prefix)
|
||||||
rotator = logging.handlers.TimedRotatingFileHandler(p, when='s',
|
rotator = logging.handlers.TimedRotatingFileHandler(p, when='s',
|
||||||
interval=5,
|
interval=5,
|
||||||
backupCount=7)
|
backupCount=7,
|
||||||
|
delay=True)
|
||||||
rotators.append(rotator)
|
rotators.append(rotator)
|
||||||
if prefix.startswith('a.b'):
|
if prefix.startswith('a.b'):
|
||||||
for t in times:
|
for t in times:
|
||||||
|
|
Loading…
Reference in New Issue