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:
Tim Burke 2024-10-09 08:18:49 -07:00
parent cfc7f99d43
commit ef8764cb06
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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 = {}