Show username properly in log when logging auditing information.

pull/7/head
Ferry Boender 9 years ago
parent b8f19a1bba
commit a17906b5ba
  1. 3
      src/webapp.py

@ -510,10 +510,9 @@ class ScriptFormWebApp(WebAppHandler):
# Log the callback and its parameters for auditing purposes.
log = logging.getLogger('CALLBACK_AUDIT')
cwd = os.path.realpath(os.curdir)
username = getattr(self.request, 'username', 'None')
log.info("Calling script: {0}".format(form_def.script))
log.info("Current working dir: {0}".format(cwd))
log.info("User: {0}".format(username))
log.info("User: {0}".format(self.username))
log.info("Variables: {0}".format(dict(form_values.items())))
result = form_config.callback(form_name, form_values, self.wfile,

Loading…
Cancel
Save