summary refs log tree commit diff
path: root/synapse/events
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-12-10 11:38:08 +0000
committerErik Johnston <erik@matrix.org>2014-12-10 11:38:08 +0000
commit102d2373b4c5e46252ca9e2845a2415c5d00d193 (patch)
tree70f79337d6252011ff932a79c450d1c2c897951f /synapse/events
parentTry and figure out how and why signatures are being changed. (diff)
downloadsynapse-102d2373b4c5e46252ca9e2845a2415c5d00d193.tar.xz
Add __str__ to FrozenEvent
Diffstat (limited to 'synapse/events')
-rw-r--r--synapse/events/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py
index ed02138706..c43367fa20 100644
--- a/synapse/events/__init__.py
+++ b/synapse/events/__init__.py
@@ -160,3 +160,8 @@ class FrozenEvent(EventBase):
     def get_dict(self):
         # We need to unfreeze what we return
         return _unfreeze(super(FrozenEvent, self).get_dict())
+
+    def __str__(self):
+        return "<FrozenEvent event_id='%s', type='%s', state_key='%s'>" % (
+            self.event_id, self.type, self.state_key,
+        )