mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-17 13:54:22 -05:00
Log for invalid values of notif
This commit is contained in:
parent
803291728c
commit
cb6d4d07b1
@ -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(
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user