Skip to content

Commit 6fdfd13

Browse files
authored
logging.conf: avoid empty file creation
Keeps the larger size from previous commit, but sets `delay=True` in `RotatingFileHandler` https://docs.python.org/3/library/logging.handlers.html#logging.handlers.RotatingFileHandler Arguments are: `RotatingFileHandler(filename, mode='a', maxBytes=0, backupCount=0, encoding=None, delay=False, errors=None)`
1 parent 673dc04 commit 6fdfd13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

defaults/logging/logging.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ propagate=0
2020
[handler_fileHandler]
2121
class=handlers.RotatingFileHandler
2222
formatter=simpleFormatter
23-
# Filename, file mode, maximum file size in bytes,number of backups to keep
24-
args=('isce.log','a',1000048576,5)
23+
# Filename, file mode, maximum file size in bytes,number of backups to keep, encoding, delay creation
24+
args=('isce.log','a',1000048576,5,None,True)
2525

2626
[handler_consoleHandler]
2727
class=StreamHandler

0 commit comments

Comments
 (0)