Skip to content

Commit

Permalink
Fix logging not working for files
Browse files Browse the repository at this point in the history
  • Loading branch information
No767 committed Jan 3, 2024
1 parent 94e6e92 commit d1d0270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/libs/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class RodhajLogger:
def __init__(self) -> None:
self.self = self
self.log = logging.getLogger("zoee")
self.log = logging.getLogger("rodhaj")

def __enter__(self) -> None:
max_bytes = 32 * 1024 * 1024 # 32 MiB
Expand All @@ -25,7 +25,7 @@ def __enter__(self) -> None:
backupCount=5,
)
fmt = logging.Formatter(
fmt="%(asctime)s %(levelname)s %(message)s",
fmt="%(asctime)s %(levelname)s\t%(message)s",
datefmt="[%Y-%m-%d %H:%M:%S]",
)
handler.setFormatter(fmt)
Expand Down

0 comments on commit d1d0270

Please sign in to comment.