##// END OF EJS Templates
request-wrapper: show http method in summary log entry.
marcink -
r3430:71ecae09 default
parent child
Show More
@@ -45,8 +45,8 class RequestWrapperTween(object):
45 end = time.time()
45 end = time.time()
46 total = end - start
46 total = end - start
47 log.info(
47 log.info(
48 'IP: %s Request to %s time: %.3fs [%s]',
48 'IP: %s %s Request to %s time: %.3fs [%s]',
49 get_ip_addr(request.environ),
49 get_ip_addr(request.environ), request.environ.get('REQUEST_METHOD'),
50 safe_str(get_access_path(request.environ)), total,
50 safe_str(get_access_path(request.environ)), total,
51 get_user_agent(request. environ)
51 get_user_agent(request. environ)
52 )
52 )
@@ -57,4 +57,4 class RequestWrapperTween(object):
57 def includeme(config):
57 def includeme(config):
58 config.add_tween(
58 config.add_tween(
59 'rhodecode.lib.middleware.request_wrapper.RequestWrapperTween',
59 'rhodecode.lib.middleware.request_wrapper.RequestWrapperTween',
60 ) No newline at end of file
60 )
General Comments 0
You need to be logged in to leave comments. Login now