Skip to content

Commit

Permalink
Merge branch 'main' into add_credit_with_include
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGermuska committed Sep 6, 2023
2 parents f03f1a1 + bde0dbb commit fee8072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from util import send_email, initialize_directory

import logging
from logging.handlers import TimedRotatingFileHandler
from logging.handlers import RotatingFileHandler

logger = logging.getLogger()

Expand All @@ -40,7 +40,7 @@ def configure_logging(logger):
logfile_path = os.environ.get('LOGFILE')
if logfile_path:
# daily log files for one week
handler = TimedRotatingFileHandler(logfile_path, when='d', interval=1, backupCount=6)
handler = RotatingFileHandler(logfile_path, maxBytes=200000, backupCount=6)
handler.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s'))
logger.addHandler(handler)

Expand Down

0 comments on commit fee8072

Please sign in to comment.