Also set this logger to debug

This commit is contained in:
Nico Schottelius 2016-11-13 20:43:51 +01:00
parent 0266e5c74e
commit c5491d90ad

View file

@ -53,13 +53,14 @@ def on_disconnect(client, userdata, rc):
if __name__ == '__main__': if __name__ == '__main__':
logging.root.setLevel(logging.DEBUG) logging.root.setLevel(logging.DEBUG)
log.setLevel(logging.DEBUG)
mqttc= mqtt.Client() mqttc= mqtt.Client()
mqttc.on_connect=on_connect mqttc.on_connect=on_connect
mqttc.on_message=on_message mqttc.on_message=on_message
mqttc.on_disconnect=on_disconnect mqttc.on_disconnect=on_disconnect
print("Connecting to ttn") log.debug("Connecting to ttn")
username=os.environ['ttn_user'] username=os.environ['ttn_user']
password=os.environ['ttn_password'] password=os.environ['ttn_password']