diff --git a/python/src/trezorlib/log.py b/python/src/trezorlib/log.py index 9cc4a6b9aa..6a6c3717c8 100644 --- a/python/src/trezorlib/log.py +++ b/python/src/trezorlib/log.py @@ -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)