]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS: Configure logging to show nfcpy log message
authorJouni Malinen <j@w1.fi>
Sun, 10 Feb 2013 14:20:25 +0000 (16:20 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 10 Feb 2013 14:20:25 +0000 (16:20 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

hostapd/wps-ap-nfc.py
wpa_supplicant/examples/wps-nfc.py

index 92e9aab75b17361e54c28a7e27fc5adb600cb589..4b2ca02372a45ee47b1304e7e28637aff1595a3c 100755 (executable)
@@ -15,6 +15,9 @@ import nfc.ndef
 import nfc.llcp
 import nfc.handover
 
+import logging
+logging.basicConfig()
+
 import wpactrl
 
 wpas_ctrl = '/var/run/hostapd'
index 0cfc1f684dc9f6f834834927a9e677e04d3133fe..aa386c2c6b847d296dbab4997e1a7dbaec7a229c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/python
 #
 # Example nfcpy to wpa_supplicant wrapper for WPS NFC operations
-# Copyright (c) 2012, Jouni Malinen <j@w1.fi>
+# Copyright (c) 2012-2013, Jouni Malinen <j@w1.fi>
 #
 # This software may be distributed under the terms of the BSD license.
 # See README for more details.
@@ -15,6 +15,9 @@ import nfc.ndef
 import nfc.llcp
 import nfc.handover
 
+import logging
+logging.basicConfig()
+
 import wpactrl
 
 wpas_ctrl = '/var/run/wpa_supplicant'