diff --git a/python/lorautil.py b/python/lorautil.py index 56607ca..578d46e 100644 --- a/python/lorautil.py +++ b/python/lorautil.py @@ -16,7 +16,6 @@ import websocket log = logging.getLogger("lorautil") -log.setLevel(logging.DEBUG) dbname="lorawan" diff --git a/python/ttn-receiver.py b/python/ttn-receiver.py index ad06fdb..65f6acf 100644 --- a/python/ttn-receiver.py +++ b/python/ttn-receiver.py @@ -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()