diff --git a/hwilib/devices/ledger_bitcoin/ledgercomm/log.py b/hwilib/devices/ledger_bitcoin/ledgercomm/log.py index 0fc8eff02..6fbd23159 100644 --- a/hwilib/devices/ledger_bitcoin/ledgercomm/log.py +++ b/hwilib/devices/ledger_bitcoin/ledgercomm/log.py @@ -2,4 +2,4 @@ import logging -LOG = logging.getLogger(__name__) +LOG = logging.getLogger(__name__.rsplit(".", 1)[0]) diff --git a/hwilib/devices/trezorlib/log.py b/hwilib/devices/trezorlib/log.py index 2b63df2d4..6a6c3717c 100644 --- a/hwilib/devices/trezorlib/log.py +++ b/hwilib/devices/trezorlib/log.py @@ -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)