summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAlistair Coles <alistairncoles@gmail.com>2022-02-04 10:58:46 +0000
committerAlistair Coles <alistairncoles@gmail.com>2022-02-07 17:46:06 +0000
commiteda7d5fe3c9527ae20850b38f8b626782dd5efec (patch)
tree6a11e0bb89370be23c4f3606becc97d08f31a29f /etc
parent2a60c91f6fcf9ed165a008c8800e475e5f2fc777 (diff)
downloadswift-eda7d5fe3c9527ae20850b38f8b626782dd5efec.tar.gz
Deprecate LogAdapter.set_statsd_prefix
Previously, the set_statsd_prefix method was used to mutate a logger's StatsdClient tail prefix after a logger was instantiated. This pattern had led to unexpected mutations (see Related-Change). The tail_prefix can now be passed as an argument to get_logger(), and is then forwarded to the StatsdClient constructor, for a more explicit assignment pattern. The set_statsd_prefix method is left in place for backwards compatibility. A DeprecationWarning will be raised if it is used to mutate the StatsdClient tail prefix. Change-Id: I7692860e3b741e1bc10626e26bb7b27399c325ab Related-Change: I0522b1953722ca96021a0002cf93432b973ce626
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions