logging: Add UPDATE to valid http methods
We introduced this a while back, but forgot to add it then. Related-Change: Ia13ee5da3d1b5c536eccaadc7a6fdcd997374443 Change-Id: Ib65ddf50d7f5c3e27475626000943eb18e65c73a
This commit is contained in:
parent
cfc7f99d43
commit
ef8764cb06
@ -1029,7 +1029,7 @@ use = egg:swift#proxy_logging
|
|||||||
#
|
#
|
||||||
# What HTTP methods are allowed for StatsD logging (comma-sep); request methods
|
# 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.
|
# 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
|
# Hashing algorithm for log anonymization. Must be one of algorithms supported
|
||||||
# by Python's hashlib.
|
# by Python's hashlib.
|
||||||
|
@ -137,7 +137,7 @@ class ProxyLoggingMiddleware(object):
|
|||||||
self.valid_methods = conf.get(
|
self.valid_methods = conf.get(
|
||||||
'access_log_statsd_valid_http_methods',
|
'access_log_statsd_valid_http_methods',
|
||||||
conf.get('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 = [m.strip().upper() for m in
|
||||||
self.valid_methods.split(',') if m.strip()]
|
self.valid_methods.split(',') if m.strip()]
|
||||||
access_log_conf = {}
|
access_log_conf = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user