Agent: don't log the contents of credentials telemetries

This commit is contained in:
vakaris_zilius 2022-02-18 11:55:27 +00:00 committed by vakarisz
parent b224348881
commit 036388e704
1 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,9 @@ class CredentialsTelem(BaseTelem):
""" """
self._credentials = credentials self._credentials = credentials
def send(self, log_data=True):
super().send(log_data=False)
def get_data(self) -> Dict: def get_data(self) -> Dict:
# TODO: At a later time we can consider factoring this into a Serializer class or similar. # TODO: At a later time we can consider factoring this into a Serializer class or similar.
return json.loads(json.dumps(self._credentials, default=_serialize)) return json.loads(json.dumps(self._credentials, default=_serialize))