From 88209617b45670a4c79e691d5d8234c5b6d7a815 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Wed, 5 Apr 2023 14:11:32 +0200 Subject: [PATCH] qml: in auth wrapper, use own logger and log func name --- electrum/gui/qml/auth.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qml/auth.py b/electrum/gui/qml/auth.py index a7e141204..c8dd3d825 100644 --- a/electrum/gui/qml/auth.py +++ b/electrum/gui/qml/auth.py @@ -10,9 +10,10 @@ def auth_protect(func=None, reject=None, method='pin'): @wraps(func) def wrapper(self, *args, **kwargs): - self._logger.debug(str(self)) + _logger = get_logger(__name__) + _logger.debug(f'{str(self)}.{func.__name__}') if hasattr(self, '__auth_fcall'): - self._logger.debug('object already has a pending authed function call') + _logger.debug('object already has a pending authed function call') raise Exception('object already has a pending authed function call') setattr(self, '__auth_fcall', (func,args,kwargs,reject)) getattr(self, 'authRequired').emit(method)