Log OTA errors properly
This commit is contained in:
@@ -145,8 +145,8 @@ export function useOTAUpdates() {
|
|||||||
} else {
|
} else {
|
||||||
logger.debug('No update available.')
|
logger.debug('No update available.')
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
logger.error('OTA Update Error', {error: `${e}`})
|
logger.error('OTA Update Error', {safeMessage: err})
|
||||||
}
|
}
|
||||||
}, 10e3)
|
}, 10e3)
|
||||||
}, [])
|
}, [])
|
||||||
@@ -154,8 +154,8 @@ export function useOTAUpdates() {
|
|||||||
const onIsTestFlight = React.useCallback(async () => {
|
const onIsTestFlight = React.useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
await updateTestflight()
|
await updateTestflight()
|
||||||
} catch (e: any) {
|
} catch (err: any) {
|
||||||
logger.error('Internal OTA Update Error', {error: `${e}`})
|
logger.error('Internal OTA Update Error', {safeMessage: err})
|
||||||
}
|
}
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user