summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dbkr@matrix.org>2015-03-11 22:17:31 +0000
committerDavid Baker <dbkr@matrix.org>2015-03-11 22:17:31 +0000
commitc92fdf88a34c22b3147f0a674633cea33ada4b99 (patch)
treefdb2258cc52a14537ae9455c16fd5df39541ab42 /synapse
parentMerge pull request #107 from matrix-org/add_desc_to_storage_execute (diff)
downloadsynapse-c92fdf88a34c22b3147f0a674633cea33ada4b99.tar.xz
Log the matching push rule.
Diffstat (limited to 'synapse')
-rw-r--r--synapse/push/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/push/__init__.py b/synapse/push/__init__.py
index d69c92911f..5056374eb9 100644
--- a/synapse/push/__init__.py
+++ b/synapse/push/__init__.py
@@ -128,13 +128,15 @@ class Pusher(object):
             # ignore rules with no actions (we have an explict 'dont_notify')
             if len(actions) == 0:
                 logger.warn(
-                    "Ignoring rule id %s with no actions for user %s" %
-                    (r['rule_id'], r['user_name'])
+                    "Ignoring rule id %s with no actions for user %s",
+                    r['rule_id'], self.user_name
                 )
                 continue
             if matches:
+                logger.info("%s matches for user %s, event %s", r['rule_id'], self.user_name, ev['event_id'])
                 defer.returnValue(actions)
 
+        logger.info("No rules match for user %s, event %s", self.user_name, ev['event_id'])
         defer.returnValue(Pusher.DEFAULT_ACTIONS)
 
     @staticmethod