mirror of
https://github.com/tooot-app/app
synced 2025-01-31 02:37:13 +01:00
Add logging for #472
This commit is contained in:
parent
507ecf5eeb
commit
0fd3fcfd3f
@ -2,6 +2,7 @@ import apiInstance from '@api/instance'
|
|||||||
import apiTooot, { TOOOT_API_DOMAIN } from '@api/tooot'
|
import apiTooot, { TOOOT_API_DOMAIN } from '@api/tooot'
|
||||||
import i18n from '@root/i18n/i18n'
|
import i18n from '@root/i18n/i18n'
|
||||||
import { RootState } from '@root/store'
|
import { RootState } from '@root/store'
|
||||||
|
import * as Sentry from '@sentry/react-native'
|
||||||
import { InstanceLatest } from '@utils/migrations/instances/migration'
|
import { InstanceLatest } from '@utils/migrations/instances/migration'
|
||||||
import { getInstance } from '@utils/slices/instancesSlice'
|
import { getInstance } from '@utils/slices/instancesSlice'
|
||||||
import * as Notifications from 'expo-notifications'
|
import * as Notifications from 'expo-notifications'
|
||||||
@ -72,6 +73,16 @@ const pushRegister = async (
|
|||||||
body: formData
|
body: formData
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (res.body.server_key) {
|
||||||
|
Sentry.setExtras({
|
||||||
|
API: 'tooot',
|
||||||
|
instance: instanceUri,
|
||||||
|
resBody: res.body
|
||||||
|
})
|
||||||
|
Sentry.captureMessage('Push register error')
|
||||||
|
return Promise.reject()
|
||||||
|
}
|
||||||
|
|
||||||
await subscribe({
|
await subscribe({
|
||||||
expoToken,
|
expoToken,
|
||||||
instanceUrl,
|
instanceUrl,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user