Skip to content

Commit

Permalink
fixing the way the filename is concatenated
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Jan 10, 2024
1 parent 66444dd commit 6993240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6993240

Please sign in to comment.