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

models/ 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:
if 'message' in msg:
msg = msg['message']
msg = '?'
ip = request.client
if ip in ips:
ip = "%s/%s" % (ip, ips[ip])
Supports Markdown
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