Commits

Robert Brewer committed c661b51

Log error if log_access fails.

Comments (0)

Files changed (1)

cherrypy/_cprequest.py

             # HEAD requests MUST NOT return a message-body in the response.
             cherrypy.response.body = []
         
-        cherrypy.log.access()
+        try:
+            cherrypy.log.access()
+        except:
+            cherrypy.log.error(traceback=True)
         
         if cherrypy.response.timed_out:
             raise cherrypy.TimeoutError()