swift/test/unit/container
Alistair Coles 035d91dce5 Modify log_name in internal clients' pipeline configs
Modify the 'log_name' option in the InternalClient wsgi config for the
following services: container-sharder, container-reconciler,
container-deleter, container-sync and object-expirer.

Previously the 'log_name' value for all internal client instances
sharing a single internal-client.conf file took the value configured
in the conf file, or would default to 'swift'. This resulted in no
distinction between logs from each internal client, and no association
with the service using a particular internal client.

With this change the 'log_name' value will typically be <log_route>-ic
where <log_route> is the service's conf file section name. For
example, 'container-sharder-ic'.

Note: any 'log_name' value configured in an internal client conf file
will now be ignored for these services unless the option key is
preceded by 'set'.

Note: by default, the logger's StatdsClient uses the log_name as its
tail_prefix when composing metrics' names. However, the proxy-logging
middleware overrides the tail_prefix with the hard-coded value
'proxy-server'. This change to log_name therefore does not change the
statsd metric names emitted by the internal client's proxy-logging.

This patch does not change the logging of the services themselves,
just their internal clients.

Change-Id: I844381fb9e1f3462043d27eb93e3fa188b206d05
Related-Change: Ida39ec7eb02a93cf4b2aa68fc07b7f0ae27b5439
2022-01-12 11:07:25 +00:00
..
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
test_auditor.py Cleanup tests' import of debug_logger 2021-04-27 12:04:41 +01:00
test_backend.py sharder: avoid small tail shards 2021-07-07 13:59:36 +01:00
test_reconciler.py Modify log_name in internal clients' pipeline configs 2022-01-12 11:07:25 +00:00
test_replicator.py Cleanup tests' import of debug_logger 2021-04-27 12:04:41 +01:00
test_server.py container-server: return objects of a given policy 2021-08-16 11:56:54 +01:00
test_sharder.py Modify log_name in internal clients' pipeline configs 2022-01-12 11:07:25 +00:00
test_sync_store.py Cleanup tests' import of debug_logger 2021-04-27 12:04:41 +01:00
test_sync.py Modify log_name in internal clients' pipeline configs 2022-01-12 11:07:25 +00:00
test_updater.py updaters: use replication network 2021-12-10 13:31:45 +00:00