From c5491d90ad3b5373632a29a04e7d1eeb9fd21a1d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 13 Nov 2016 20:43:51 +0100 Subject: [PATCH] Also set this logger to debug --- python/ttn-receiver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ttn-receiver.py b/python/ttn-receiver.py index 5c5d82f..ba3eac7 100644 --- a/python/ttn-receiver.py +++ b/python/ttn-receiver.py @@ -53,13 +53,14 @@ def on_disconnect(client, userdata, rc): if __name__ == '__main__': logging.root.setLevel(logging.DEBUG) + log.setLevel(logging.DEBUG) mqttc= mqtt.Client() mqttc.on_connect=on_connect mqttc.on_message=on_message mqttc.on_disconnect=on_disconnect - print("Connecting to ttn") + log.debug("Connecting to ttn") username=os.environ['ttn_user'] password=os.environ['ttn_password']