swift/test/unit/common/utils
Alistair Coles 8699af83c9 Remove statds from the logs module
We would like to remove any Statsd related code from logs.py.  That
requires that SwiftLogAdapter no longer provides a StatsdClient
interface by default. However, for backwards compatibility the main
utils.get_logger/get_prefixed_logger entrypoints must provide a
SwiftLogAdapter that does have a StatdsClient interface.

The new utils._patch_statsd_methods helper function is therefore used
to retrospectively patch a SwiftLogAdapter instance with the
StatsdClient interface when necessary. The _patch_statsd_helper is
used in get_logger, and again when we clone a logger in
get_prefixed_logger.

Co-Authored-By: Shreeya Deshpande <shreeyad@nvidia.com>

Change-Id: I44694b92264066ca427bb96456d6f944e09b31c0
2024-11-27 10:54:38 +00:00
..
__init__.py Pull timestamp-related functions out to a separate module 2023-04-05 14:45:57 -07:00
test_config.py trivial: assert non_negative_int treats float as valid 2024-07-17 10:25:10 +01:00
test_ipaddrs.py Remove hard dependency on netifaces 2023-05-23 14:35:48 -07:00
test_libc.py Partially revert "Pull libc-related functions out to a separate module" 2023-08-18 17:50:31 +00:00
test_logs.py Remove statds from the logs module 2024-11-27 10:54:38 +00:00
test_timestamp.py Pull timestamp-related functions out to a separate module 2023-04-05 14:45:57 -07:00