Logging fix

This commit is contained in:
Peter Šurda 2016-11-15 17:10:14 +01:00
parent bae7351849
commit e76b10a6ed
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -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()