Merge "logging: Add UPDATE to valid http methods"

This commit is contained in:
Zuul 2024-10-15 17:37:27 +00:00 committed by Gerrit Code Review
commit 8ded39bccd
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 = {}