log buffer tweak

This commit is contained in:
abcrate 2023-11-20 10:23:53 -06:00 committed by GitHub
parent c05b24263b
commit 581029e1c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,8 @@ handler = TimedRotatingFileHandler(
'garfbot.log', 'garfbot.log',
when='midnight', when='midnight',
interval=1, interval=1,
backupCount=7 backupCount=7,
delay=True # Flush output immediately
) )
formatter=logging.Formatter( formatter=logging.Formatter(
'%(asctime)s [%(levelname)s] %(message)s', '%(asctime)s [%(levelname)s] %(message)s',