mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 10:54:03 -05:00
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:
parent
7c04bab710
commit
3021b14c49
@ -893,6 +893,14 @@ def main():
|
|||||||
test_crn = None
|
test_crn = None
|
||||||
|
|
||||||
logging.basicConfig(level=args.loglevel)
|
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
|
global init_on_touch
|
||||||
init_on_touch = args.init_on_touch
|
init_on_touch = args.init_on_touch
|
||||||
|
Loading…
Reference in New Issue
Block a user