Skip to content

Commit

Permalink
Simplified code.
Browse files Browse the repository at this point in the history
  • Loading branch information
VovaVili committed Jan 10, 2025
1 parent e11373e commit 15d00a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions media_only_topic/make_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ def get_logger(pass_to_excepthook: bool = True) -> logging.Logger:
"""
logger = logging.getLogger(name="main")
# Otherwise, you might get duplicate console handlers.
logger.handlers.clear()

logger.addFilter(DuplicateFilter())

console_handler = logging.StreamHandler()
Expand Down

0 comments on commit 15d00a3

Please sign in to comment.