Use shortstr for consistency with other log messages

This commit is contained in:
Kegan Dougal
2026-03-10 15:12:04 +00:00
parent a0711ef7ff
commit 85fc75c870
@@ -41,6 +41,7 @@ from typing import (
import attr
from prometheus_client import Counter, Histogram
from synapse.util.stringutils import shortstr
from twisted.internet import defer
from synapse.api.constants import EventTypes, Membership
@@ -995,8 +996,8 @@ class EventsPersistenceStorageController:
missing_prev_state_events,
)
logger.error(
"_calculate_new_state_dag_extremities: was handling (max 10) %s",
[ev.event_id for ev in list(all_new_state_events)[:10]],
"_calculate_new_state_dag_extremities: was handling %s",
shortstr([ev.event_id for ev in all_new_state_events]),
)
raise SynapseError(
code=500,