dpp-nfc: Enable more verbose nfcpy debugging

Set logging level to various upper layer nfcpy modules to enable more
detailed debugging of the actual NFC operations when requested (-d on
the command line).

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-07-30 16:49:40 +03:00 committed by Jouni Malinen
parent 7c04bab710
commit 3021b14c49

View file

@ -893,6 +893,14 @@ def main():
test_crn = None
logging.basicConfig(level=args.loglevel)
for l in ['nfc.clf.rcs380',
'nfc.clf.transport',
'nfc.clf.device',
'nfc.clf.__init__',
'nfc.llcp',
'nfc.handover']:
log = logging.getLogger(l)
log.setLevel(args.loglevel)
global init_on_touch
init_on_touch = args.init_on_touch