summary refs log tree commit diff
path: root/synapse/push
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-01-29 15:49:06 +0000
committerRichard van der Hoff <richard@matrix.org>2018-01-29 15:49:06 +0000
commit03dd745fe28a00c8788a2147d4f5c2a852182429 (patch)
tree04d524476b9c6135856212b20be45bae0ee82fba /synapse/push
parentadd appid/device_display_name to to pusher logging (diff)
downloadsynapse-03dd745fe28a00c8788a2147d4f5c2a852182429.tar.xz
Better logging when pushes fail
Diffstat (limited to '')
-rw-r--r--synapse/push/httppusher.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py
index 02bd013ca3..2cbac571b8 100644
--- a/synapse/push/httppusher.py
+++ b/synapse/push/httppusher.py
@@ -333,7 +333,10 @@ class HttpPusher(object):
         try:
             resp = yield self.http_client.post_json_get_json(self.url, notification_dict)
         except Exception:
-            logger.warn("Failed to push %s ", self.url)
+            logger.warn(
+                "Failed to push event %s to %s",
+                event.event_id, self.name, exc_info=True,
+            )
             defer.returnValue(False)
         rejected = []
         if 'rejected' in resp:
@@ -364,7 +367,10 @@ class HttpPusher(object):
         try:
             resp = yield self.http_client.post_json_get_json(self.url, d)
         except Exception:
-            logger.exception("Failed to push %s ", self.url)
+            logger.warn(
+                "Failed to send badge count to %s",
+                self.name, exc_info=True,
+            )
             defer.returnValue(False)
         rejected = []
         if 'rejected' in resp: