matrix-org / sygnal

Sygnal: reference Push Gateway for Matrix
Apache License 2.0
155 stars 140 forks source link

"default_payload was misconfigured, this value must be a dict" error is noisy #314

Closed anoadragon453 closed 1 year ago

anoadragon453 commented 2 years ago

Describe the bug As of https://github.com/matrix-org/sygnal/pull/292 we now check that default_payload is a dictionary before interacting with it. default_payload is a user-supplied dictionary which is set when a client sets up their pusher via POST /_matrix/client/v3/pushers/set.

While we now successfully catch when clients set this value incorrectly, raising an error means that this we get notified via Sentry when it happens - and as this data is user-supplied, we can't really do much about it, making the error noise.

This issue proposes to downgrade the log from an error to a warning. Such instances will then still be logged, but not show up in Sentry/potentially alarm sysadmins.