diff --git a/src/common/logger.py b/src/common/logger.py index 05110f3..77f9c48 100644 --- a/src/common/logger.py +++ b/src/common/logger.py @@ -69,8 +69,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)