Skip to content

Commit

Permalink
lib log: Fix for bug introduced with v 1.10 in ShngTimedRotatingFileH…
Browse files Browse the repository at this point in the history
…andler: Log content and file name had an offset.
  • Loading branch information
aschwith committed Mar 10, 2024
1 parent b058142 commit 6760474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6760474

Please sign in to comment.