From 3021b14c490493bf8cec7e51f12796ae05bb0a97 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 30 Jul 2020 16:49:40 +0300 Subject: [PATCH] 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 --- wpa_supplicant/examples/dpp-nfc.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wpa_supplicant/examples/dpp-nfc.py b/wpa_supplicant/examples/dpp-nfc.py index bbfc303a8..ef6370598 100755 --- a/wpa_supplicant/examples/dpp-nfc.py +++ b/wpa_supplicant/examples/dpp-nfc.py @@ -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