Skip to content

Commit

Permalink
remove duplicate setup_logger import
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue committed Sep 7, 2023
1 parent c163f34 commit 0ad354d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions my/league/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
4 changes: 1 addition & 3 deletions my/mpv/history_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit 0ad354d

Please sign in to comment.