Skip to content

Commit

Permalink
Merge pull request mautrix#681 from justinbot/justinbot/dont-log-mess…
Browse files Browse the repository at this point in the history
…ages

Don't log entire message contents on exception
  • Loading branch information
sumnerevans authored Oct 29, 2021
2 parents 7c5d1c2 + 4e7cf48 commit 3507095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mautrix_telegram/abstract_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ async def _update_catch(self, update: TypeUpdate) -> None:
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)

Expand Down

0 comments on commit 3507095

Please sign in to comment.