From 4e7cf481fd81a3208ac4b82682368850877857ca Mon Sep 17 00:00:00 2001 From: Justin Carlson Date: Fri, 29 Oct 2021 12:30:49 -0400 Subject: [PATCH] Don't log entire messagecontents on exception. --- mautrix_telegram/abstract_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mautrix_telegram/abstract_user.py b/mautrix_telegram/abstract_user.py index 28beae6e..f9d9fe7b 100644 --- a/mautrix_telegram/abstract_user.py +++ b/mautrix_telegram/abstract_user.py @@ -198,7 +198,7 @@ class AbstractUser(ABC): if not await self.update(update): await self._update(update) except Exception: - self.log.exception(f"Failed to handle Telegram update {update}") + self.log.exception("Failed to handle Telegram update") UPDATE_ERRORS.labels(update_type=update_type).inc() UPDATE_TIME.labels(update_type=update_type).observe(time.time() - start_time)