From 0ad354dcf998a3d2249ac55f49386d411a5ae829 Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Wed, 6 Sep 2023 21:59:30 -0700 Subject: [PATCH] remove duplicate setup_logger import --- my/league/export.py | 3 +-- my/mpv/history_daemon.py | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/my/league/export.py b/my/league/export.py index d0ed854..34073fd 100644 --- a/my/league/export.py +++ b/my/league/export.py @@ -27,12 +27,11 @@ class config(user_config.export): from lolexport.merge import Game, merge_game_histories import lolexport.log as llog -from logzero import setup_logger # type: ignore[import] logger = make_logger(__name__) # configure logs -llog.logger = setup_logger(name="lolexport", level=logger.level) +llog.logger = llog.setup_logger(name="lolexport", level=logger.level) def inputs() -> Sequence[Path]: diff --git a/my/mpv/history_daemon.py b/my/mpv/history_daemon.py index 6aa97d7..7e4f40e 100644 --- a/my/mpv/history_daemon.py +++ b/my/mpv/history_daemon.py @@ -41,11 +41,9 @@ class mpv_config(user_config.history_daemon): logger = LazyLogger(__name__) # monkey patch logs - -from logzero import setup_logger # type: ignore[import] import mpv_history_daemon.events -mpv_history_daemon.events.logger = setup_logger( +mpv_history_daemon.events.logger = mpv_history_daemon.events.setup_logger( name="mpv_history_events", level=logger.level )