Skip to content

Commit

Permalink
fix(python): nest logger in the proper way (#3190)
Browse files Browse the repository at this point in the history
this way logger is properly nested even when the library is used as submodule (e.g. HWI)

see bitcoin-core/HWI#697
  • Loading branch information
fametrano authored Aug 3, 2023
1 parent 9f6f250 commit 59ba113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/src/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("trezorlib")
logger = logging.getLogger(__name__.rsplit(".", 1)[0])
logger.setLevel(level)
logger.addHandler(handler)

0 comments on commit 59ba113

Please sign in to comment.