Commit 2ae10536 authored by Mathieu Giraud's avatar Mathieu Giraud

models/ calls web2py .log_event() to log in DB logging events

Follows 06102f4b and may fix #3202.
Thanks to @RyanHerb.
parent 51f6c35c
Pipeline #39260 canceled with stages
in 2 minutes and 28 seconds
......@@ -603,6 +603,7 @@ class VidjilAuth(Auth):
return query
def log_event(self, description, vars=None, origin='auth'):
super(VidjilAuth, self).log_event(self, description, vars, origin)
if self.log and description:
message = description % vars + '.'
for (k,v) in vars.iteritems():
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment