]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
dpp-nfc: Enable more verbose nfcpy debugging
authorJouni Malinen <jouni@codeaurora.org>
Thu, 30 Jul 2020 13:49:40 +0000 (16:49 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 30 Jul 2020 13:49:40 +0000 (16:49 +0300)
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>
wpa_supplicant/examples/dpp-nfc.py

index bbfc303a829d40ce73afc57cfe9972e2a949172b..ef6370598fd3481140296e617422026efe0967b8 100755 (executable)
@@ -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