Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
Fix logger fir does not exist error 👌
Browse files Browse the repository at this point in the history
  • Loading branch information
cofob committed Feb 18, 2022
1 parent 46f4c4f commit d1ffe23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autodonate/lib/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def get_logger(name: str):
Taken from https://stackoverflow.com/questions/59254843/add-custom-log-records-in-django.
""" # noqa: E501
(BASE_DIR / "logs").mkdir(exist_ok=True)
logger = getLogger(name)
logger.setLevel(INFO)
file_handler = FileHandler(
Expand Down

0 comments on commit d1ffe23

Please sign in to comment.