Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixing76 committed May 15, 2024
1 parent c0dfdea commit 0773f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion factcheck/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, name: str, loglevel=logging.INFO):
# If the directory does not exist, create it
os.makedirs("./log")
env = os.environ.get("env", "dev")
fh = TimedRotatingFileHandler(filename="./log/factcheck_{}.log".format(env), when="D", encoding='utf-8')
fh = TimedRotatingFileHandler(filename="./log/factcheck_{}.log".format(env), when="D", encoding="utf-8")
fh.setLevel(loglevel)
if not self.logger.handlers:
# Create another handler for output to the console
Expand Down

0 comments on commit 0773f96

Please sign in to comment.