summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-01-27 17:34:40 +0000
committerKegan Dougal <kegan@matrix.org>2015-01-27 17:34:40 +0000
commitfbeaeb868960099c3682802275d5a222c0cc2d8b (patch)
tree7428d538bdc60f7cb8842ac13e213edcd7e634f4 /synapse/storage
parentUse ApplicationService when registering. (diff)
downloadsynapse-fbeaeb868960099c3682802275d5a222c0cc2d8b.tar.xz
Log when ASes are registered/unregistered.
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/appservice.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/appservice.py b/synapse/storage/appservice.py
index f84f026b7b..cd15843ba3 100644
--- a/synapse/storage/appservice.py
+++ b/synapse/storage/appservice.py
@@ -51,6 +51,9 @@ class ApplicationService(object):
 
         return True
 
+    def __str__(self):
+        return "ApplicationService: %s" % (self.__dict__,)
+
 
 class ApplicationServiceCache(object):
     """Caches ApplicationServices and provides utility functions on top.
@@ -83,7 +86,6 @@ class ApplicationServiceStore(SQLBaseStore):
     def __init__(self, hs):
         super(ApplicationServiceStore, self).__init__(hs)
         self.cache = ApplicationServiceCache()
-        self.clock = hs.get_clock()
         self._populate_cache()
 
     def unregister_app_service(self, token):