statsd: added special repr for statsdclient for nicer debug
This commit is contained in:
parent
3982ae9102
commit
cdc40e48c7
1 changed files with 3 additions and 0 deletions
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue