Merge "logging: Add UPDATE to valid http methods"
This commit is contained in:
commit
8ded39bccd
@ -1029,7 +1029,7 @@ use = egg:swift#proxy_logging
|
||||
#
|
||||
# What HTTP methods are allowed for StatsD logging (comma-sep); request methods
|
||||
# not in this list will have "BAD_METHOD" for the <verb> portion of the metric.
|
||||
# log_statsd_valid_http_methods = GET,HEAD,POST,PUT,DELETE,COPY,OPTIONS
|
||||
# log_statsd_valid_http_methods = GET,HEAD,POST,PUT,DELETE,COPY,OPTIONS,UPDATE
|
||||
#
|
||||
# Hashing algorithm for log anonymization. Must be one of algorithms supported
|
||||
# by Python's hashlib.
|
||||
|
@ -137,7 +137,7 @@ class ProxyLoggingMiddleware(object):
|
||||
self.valid_methods = conf.get(
|
||||
'access_log_statsd_valid_http_methods',
|
||||
conf.get('log_statsd_valid_http_methods',
|
||||
'GET,HEAD,POST,PUT,DELETE,COPY,OPTIONS'))
|
||||
'GET,HEAD,POST,PUT,DELETE,COPY,OPTIONS,UPDATE'))
|
||||
self.valid_methods = [m.strip().upper() for m in
|
||||
self.valid_methods.split(',') if m.strip()]
|
||||
access_log_conf = {}
|
||||
|
Loading…
Reference in New Issue
Block a user