Skip to content
Snippets Groups Projects
Commit 512b4a41 authored by Johannes Walcher's avatar Johannes Walcher
Browse files

fixed logging

parent 27cf6821
No related branches found
No related tags found
No related merge requests found
...@@ -103,13 +103,13 @@ class Hauptbahnhof: ...@@ -103,13 +103,13 @@ class Hauptbahnhof:
futures = self._subscriptions[msg.topic] futures = self._subscriptions[msg.topic]
except KeyError: except KeyError:
# Received unknown message - this is strange, log and ignore # Received unknown message - this is strange, log and ignore
self.log("Received unsubscribed message on %s with content: %s"%( self.log.info("Received unsubscribed message on %s with content: %s"%(
msg.topic, msg.payload)) msg.topic, msg.payload))
try: try:
payloadobj = json.loads(payload) payloadobj = json.loads(payload)
except json.JSONDecodeError: except json.JSONDecodeError:
self.log("Invalid json received: %s"%payload) self.log.info("Invalid json received: %s"%payload)
continue continue
except: except:
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment