Skip to content

Commit

Permalink
present naming preference (without trailing .log)
Browse files Browse the repository at this point in the history
  • Loading branch information
fametrano committed Aug 2, 2023
1 parent 324b88e commit 75af80b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hwilib/devices/ledger_bitcoin/ledgercomm/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

import logging

LOG = logging.getLogger(__name__)
LOG = logging.getLogger(__name__.rsplit(".", 1)[0])
2 changes: 1 addition & 1 deletion hwilib/devices/trezorlib/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ def enable_debug_output(
if verbosity > 2:
level = DUMP_PACKETS

logger = logging.getLogger(__name__)
logger = logging.getLogger(__name__.rsplit(".", 1)[0])
logger.setLevel(level)
logger.addHandler(handler)

0 comments on commit 75af80b

Please sign in to comment.