Skip to content

Commit

Permalink
fixing type casting warning
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Nov 21, 2024
1 parent 42a6c4e commit 0ed6c9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0ed6c9a

Please sign in to comment.