Commit e031a88d authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

models/db.py: log works even if "message" is not defined

parent 8fbb3e6a
......@@ -224,7 +224,10 @@ class MsgUserAdapter(logging.LoggerAdapter):
def process(self, msg, kwargs):
if type(msg) is dict:
msg = msg['message']
if 'message' in msg:
msg = msg['message']
else:
msg = '?'
ip = request.client
if ip in ips:
ip = "%s/%s" % (ip, ips[ip])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment