Log for invalid values of notif

This commit is contained in:
Brendan Abolivier 2020-06-11 18:29:20 +01:00
parent 803291728c
commit cb6d4d07b1
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD

View File

@ -149,6 +149,12 @@ class EventPushActionsWorkerStore(SQLBaseStore):
unread_count += row[0] unread_count += row[0]
if row[1] == 1: if row[1] == 1:
notify_count = row[0] 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( txn.execute(
""" """