statsd: added special repr for statsdclient for nicer debug

This commit is contained in:
RhodeCode Admin 2024-02-28 09:29:49 +01:00
parent 3982ae9102
commit cdc40e48c7

View file

@ -25,6 +25,9 @@ class StatsdClientClass(Singleton):
statsd_client = None
statsd = None
def __repr__(self):
return f"{self.__class__}(statsd={self.statsd})"
def __getattribute__(self, name):
if name.startswith("statsd"):