[publisher] add session id when logging published path stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 23 Sep 2010 10:49:05 +0200
branchstable
changeset 6318 de6264ac7c50
parent 6317 0d4dd5f6f05c
child 6319 20a7399ed58d
[publisher] add session id when logging published path
web/application.py
--- a/web/application.py	Thu Sep 23 10:48:43 2010 +0200
+++ b/web/application.py	Thu Sep 23 10:49:05 2010 +0200
@@ -369,7 +369,8 @@
         """
         path = path or 'view'
         # don't log form values they may contains sensitive information
-        self.info('publish "%s" (form params: %s)', path, req.form.keys())
+        self.info('publish "%s" (%s, form params: %s)',
+                  path, req.session.sessionid, req.form.keys())
         # remove user callbacks on a new request (except for json controllers
         # to avoid callbacks being unregistered before they could be called)
         tstart = clock()