Don't log entire messagecontents on exception.

This commit is contained in:
Justin Carlson
2021-10-29 12:30:49 -04:00
parent 7c5d1c2959
commit 4e7cf481fd
+1 -1
View File
@@ -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)