summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-06-11 18:29:20 +0100
committerBrendan Abolivier <babolivier@matrix.org>2020-06-11 18:30:31 +0100
commitcb6d4d07b1cbeff3be55be4ddeedfb2cc13ff959 (patch)
treed9014214b6ce6b49c0856b52b16b113d33523e90
parentFix SQL (diff)
downloadsynapse-cb6d4d07b1cbeff3be55be4ddeedfb2cc13ff959.tar.xz
Log for invalid values of notif
-rw-r--r--synapse/storage/data_stores/main/event_push_actions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/storage/data_stores/main/event_push_actions.py b/synapse/storage/data_stores/main/event_push_actions.py
index 7cd3ae6ae6..14eb79cc42 100644
--- a/synapse/storage/data_stores/main/event_push_actions.py
+++ b/synapse/storage/data_stores/main/event_push_actions.py
@@ -149,6 +149,12 @@ class EventPushActionsWorkerStore(SQLBaseStore):
             unread_count += row[0]
             if row[1] == 1:
                 notify_count = row[0]
+            elif row[1] != 0:
+                logger.warning(
+                    "Unexpected value %d for column 'notif' in table"
+                    " 'event_push_actions'",
+                    row[1],
+                )
 
         txn.execute(
             """