Change logging levels

This commit is contained in:
Nico Schottelius 2016-11-13 19:47:23 +01:00
parent f7f4fe6c91
commit 54a50e8850
2 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,6 @@ import websocket
log = logging.getLogger("lorautil") log = logging.getLogger("lorautil")
log.setLevel(logging.DEBUG)
dbname="lorawan" dbname="lorawan"

View File

@ -16,8 +16,8 @@ import logging
import lorautil import lorautil
log = logging.getLogger("ttn")
log.setLevel(logging.DEBUG) log.setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
#Call back functions #Call back functions
@ -60,7 +60,7 @@ if __name__ == '__main__':
mqttc.connect("staging.thethingsnetwork.org",1883,10) mqttc.connect("staging.thethingsnetwork.org",1883,10)
# and listen to server # and listen to server
print("Listening via mqtt") log.info("Listening via mqtt")
run = True run = True
while run: while run:
mqttc.loop() mqttc.loop()