Change logging levels
This commit is contained in:
parent
f7f4fe6c91
commit
54a50e8850
2 changed files with 2 additions and 3 deletions
|
@ -16,7 +16,6 @@ import websocket
|
|||
|
||||
|
||||
log = logging.getLogger("lorautil")
|
||||
log.setLevel(logging.DEBUG)
|
||||
|
||||
dbname="lorawan"
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ import logging
|
|||
|
||||
import lorautil
|
||||
|
||||
log = logging.getLogger("ttn")
|
||||
log.setLevel(logging.DEBUG)
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
#Call back functions
|
||||
|
||||
|
@ -60,7 +60,7 @@ if __name__ == '__main__':
|
|||
mqttc.connect("staging.thethingsnetwork.org",1883,10)
|
||||
|
||||
# and listen to server
|
||||
print("Listening via mqtt")
|
||||
log.info("Listening via mqtt")
|
||||
run = True
|
||||
while run:
|
||||
mqttc.loop()
|
||||
|
|
Loading…
Reference in a new issue