From f94a5d8fd0209c12e4225b0b2ddab8822bbf1ed4 Mon Sep 17 00:00:00 2001 From: Phil Owen <19691521+PhillipsOwen@users.noreply.github.com> Date: Thu, 21 Nov 2024 10:11:58 -0500 Subject: [PATCH] fixing type casting warning --- src/common/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/logger.py b/src/common/logger.py index 000cdbd..90821c3 100644 --- a/src/common/logger.py +++ b/src/common/logger.py @@ -57,8 +57,8 @@ def init_logging(name, level=logging.INFO, line_format='short', log_file_path=No # if there was a file path passed in use it if log_file_path is not None: - # create a rotating file handler, 100mb max per file with a max number of 10 files - file_handler = RotatingFileHandler(filename=os.path.join(log_file_path, name + '.log'), maxBytes=1000000, backupCount=10) + # create a rotating file handler, 1mb max per file with a max number of 10 files + file_handler = RotatingFileHandler(filename=str(os.path.join(log_file_path, name + '.log')), maxBytes=1000000, backupCount=10) # set the formatter file_handler.setFormatter(formatter)