From 6760474ec4c11f9c8c3c464eb2e8c732c196505e Mon Sep 17 00:00:00 2001 From: aschwith Date: Sun, 10 Mar 2024 19:36:21 +0100 Subject: [PATCH] lib log: Fix for bug introduced with v 1.10 in ShngTimedRotatingFileHandler: Log content and file name had an offset. --- lib/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/log.py b/lib/log.py index 7fa9c01f0f..dc2ed70c61 100644 --- a/lib/log.py +++ b/lib/log.py @@ -656,7 +656,7 @@ class ShngTimedRotatingFileHandler(logging.handlers.TimedRotatingFileHandler): """ TimedRotatingFilehandler with a different naming scheme for rotated files """ - def __init__(self, filename, when='MIDNIGHT', interval=0, backupCount=0, encoding=None, delay=False, utc=False): + def __init__(self, filename, when='MIDNIGHT', interval=1, backupCount=0, encoding=None, delay=False, utc=False): year = datetime.datetime.now().strftime("%Y") month = datetime.datetime.now().strftime("%m") day = datetime.datetime.now().strftime("%d")