summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-11-10 12:17:46 +0000
committerGitHub <noreply@github.com>2022-11-10 12:17:46 +0000
commitd10a85ec9eac6f31aa82a5f07d74e5914b18b320 (patch)
tree32e8c4ce593fb79ea285c4c011074eabd6e018d9
parentDrop support for Postgres 10 in full text search code. (#14397) (diff)
downloadsynapse-d10a85ec9eac6f31aa82a5f07d74e5914b18b320.tar.xz
Quieter logging for stateres failure at missing prev events (#14346)
-rw-r--r--changelog.d/14346.misc1
-rw-r--r--synapse/handlers/federation_event.py5
2 files changed, 3 insertions, 3 deletions
diff --git a/changelog.d/14346.misc b/changelog.d/14346.misc
new file mode 100644
index 0000000000..9833b0733a
--- /dev/null
+++ b/changelog.d/14346.misc
@@ -0,0 +1 @@
+Concisely log a failure to resolve state due to missing `prev_events`.
diff --git a/synapse/handlers/federation_event.py b/synapse/handlers/federation_event.py
index 9ca5df7c78..f7223b03c3 100644
--- a/synapse/handlers/federation_event.py
+++ b/synapse/handlers/federation_event.py
@@ -1065,10 +1065,9 @@ class FederationEventHandler:
                 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",