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

@ -36,7 +36,7 @@ export function useOTAUpdate() {
showUpdatePopup()
} catch (e) {
logger.error('useOTAUpdate: Error while checking for update', {
error: e,
message: e,
})
}
}, [showUpdatePopup])

View file

@ -40,7 +40,7 @@ export async function requestPermissionsAndRegisterToken(
logger.DebugContext.notifications,
)
} catch (error) {
logger.error('Notifications: Failed to set push token', {error})
logger.error('Notifications: Failed to set push token', {message: error})
}
}
@ -71,7 +71,7 @@ export function registerTokenChangeHandler(
logger.DebugContext.notifications,
)
} catch (error) {
logger.error('Notifications: Failed to set push token', {error})
logger.error('Notifications: Failed to set push token', {message: error})
}
})
return () => {