diff --git a/src/common/logger.py b/src/common/logger.py index 79f5bbd..7642129 100644 --- a/src/common/logger.py +++ b/src/common/logger.py @@ -58,7 +58,7 @@ 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) + file_handler = RotatingFileHandler(filename=os.path.join(log_file_path, f'{name}.log'), maxBytes=1000000, backupCount=10) # set the formatter file_handler.setFormatter(formatter)