Skip to content

Commit

Permalink
clean up logging
Browse files Browse the repository at this point in the history
  • Loading branch information
diversen7 committed Oct 1, 2024
1 parent 9fb3d56 commit a9c1362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stadsarkiv_client/core/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@

if "file" in settings["log_handlers"]: # type: ignore
log.debug("Logging to file enabled")
fh = logging_handlers.get_file_handler(level)
fh = logging_handlers.get_file_handler(level, file_name="logs/main.log")
log.addHandler(fh)

if "rotating_file" in settings["log_handlers"]: # type: ignore
log.debug("Logging to rotating file enabled")
fh = logging_handlers.get_rotating_file_handler(level)
fh = logging_handlers.get_rotating_file_handler(level, file_name="logs/main.log")
log.addHandler(fh)

if "stream" in settings["log_handlers"]: # type: ignore
Expand Down

0 comments on commit a9c1362

Please sign in to comment.