Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Quieter logging for stateres failure at missing prev events (#14346)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson authored Nov 10, 2022
1 parent e9a4343 commit d10a85e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/14346.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Concisely log a failure to resolve state due to missing `prev_events`.
5 changes: 2 additions & 3 deletions synapse/handlers/federation_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,10 +1065,9 @@ async def _compute_event_context_with_maybe_missing_prevs(
state_res_store=StateResolutionStore(self._store),
)

except Exception:
except Exception as e:
logger.warning(
"Error attempting to resolve state at missing prev_events",
exc_info=True,
"Error attempting to resolve state at missing prev_events: %s", e
)
raise FederationError(
"ERROR",
Expand Down

0 comments on commit d10a85e

Please sign in to comment.