From e76b10a6ed4c2453e94b4d6329d04a62ffcc7082 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Tue, 15 Nov 2016 17:10:14 +0100 Subject: [PATCH] Logging fix --- src/messagetypes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messagetypes/__init__.py b/src/messagetypes/__init__.py index 0b63519d..16d97ae7 100644 --- a/src/messagetypes/__init__.py +++ b/src/messagetypes/__init__.py @@ -14,7 +14,7 @@ def constructObject(data): try: classBase = eval(data[""] + "." + data[""].title()) except NameError: - print "Don't know how to handle message type: \"%s\"" % (data[""]) + logger.error("Don't know how to handle message type: \"%s\"", data[""]) return None try: returnObj = classBase()