Using logger.error instead of logger.exception (#191)

This commit is contained in:
Krukov D 2016-06-03 02:25:26 +03:00 committed by Andrew Godwin
parent 56104e7fc6
commit 2874a0972c

View File

@ -96,7 +96,7 @@ class Worker(object):
# Handle the message
match = self.channel_layer.router.match(message)
if match is None:
logger.exception("Could not find match for message on %s! Check your routing.", channel)
logger.error("Could not find match for message on %s! Check your routing.", channel)
continue
else:
consumer, kwargs = match