Skip to content

Commit

Permalink
Fix circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Dec 24, 2023
1 parent 36624b2 commit bc3f252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from logging.handlers import TimedRotatingFileHandler
from logging import StreamHandler, Formatter

import app.session
import app.session as session
import logging
import os

Expand Down Expand Up @@ -36,5 +36,5 @@ def format(self, record):
Console = StreamHandler()
Console.setFormatter(ColorFormatter())

File = TimedRotatingFileHandler(f'logs/{app.session.logger.name}.log', when='D', backupCount=5)
File = TimedRotatingFileHandler(f'logs/{session.logger.name}.log', when='D', backupCount=5)
File.setFormatter(Formatter('[%(asctime)s] - <%(name)s> %(levelname)s: %(message)s'))

0 comments on commit bc3f252

Please sign in to comment.