diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2020-06-11 18:29:20 +0100 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2020-06-11 18:30:31 +0100 |
commit | cb6d4d07b1cbeff3be55be4ddeedfb2cc13ff959 (patch) | |
tree | d9014214b6ce6b49c0856b52b16b113d33523e90 /synapse/storage/data_stores | |
parent | Fix SQL (diff) | |
download | synapse-cb6d4d07b1cbeff3be55be4ddeedfb2cc13ff959.tar.xz |
Log for invalid values of notif
Diffstat (limited to 'synapse/storage/data_stores')
-rw-r--r-- | synapse/storage/data_stores/main/event_push_actions.py | 6 |
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( """ |