Commits

Robert Brewer committed 53c1b09

Stuck cherrypy.url in log_hooks.

  • Participants
  • Parent commits 642674d

Comments (0)

Files changed (1)

File cherrypy/lib/cptools.py

         v.sort()
         for h in v:
             msg.append("        %r" % h)
-    cherrypy.log('\nRequest Hooks:\n' + '\n'.join(msg), "HTTP")
+    cherrypy.log('\nRequest Hooks for ' + cherrypy.url() +
+                 ':\n' + '\n'.join(msg), "HTTP")
 
 def redirect(url='', internal=True):
     """Raise InternalRedirect or HTTPRedirect to the given url."""