From 512b4a41df51d158bae1d545938c3bf727ba9118 Mon Sep 17 00:00:00 2001 From: johannes walcher <johannes.walcher@stusta.de> Date: Mon, 19 Nov 2018 12:24:01 +0100 Subject: [PATCH] fixed logging --- hauptbahnhof/hauptbahnhof.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hauptbahnhof/hauptbahnhof.py b/hauptbahnhof/hauptbahnhof.py index bb75f19..c598c30 100644 --- a/hauptbahnhof/hauptbahnhof.py +++ b/hauptbahnhof/hauptbahnhof.py @@ -103,13 +103,13 @@ class Hauptbahnhof: futures = self._subscriptions[msg.topic] except KeyError: # 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)) try: payloadobj = json.loads(payload) except json.JSONDecodeError: - self.log("Invalid json received: %s"%payload) + self.log.info("Invalid json received: %s"%payload) continue except: continue -- GitLab