0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 12:03:50 +01:00

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]
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(
"""