Clean up some sentry logs (#2630)

* Change prop name for sentry ingestion

* Fix test

* Add default object
This commit is contained in:
Eric Bailey 2024-01-25 23:11:01 -06:00 committed by GitHub
parent 3371038f7d
commit bc502edae1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 84 additions and 147 deletions

View file

@ -82,7 +82,7 @@ let PostDropdownBtn = ({
Toast.show(_(msg`Post deleted`))
},
e => {
logger.error('Failed to delete post', {error: e})
logger.error('Failed to delete post', {message: e})
Toast.show(_(msg`Failed to delete post, please try again`))
},
)
@ -99,7 +99,7 @@ let PostDropdownBtn = ({
Toast.show(_(msg`You will now receive notifications for this thread`))
}
} catch (e) {
logger.error('Failed to toggle thread mute', {error: e})
logger.error('Failed to toggle thread mute', {message: e})
}
}, [rootUri, toggleThreadMute, _])