Clean up some sentry logs (#2630)
* Change prop name for sentry ingestion * Fix test * Add default object
This commit is contained in:
parent
3371038f7d
commit
bc502edae1
39 changed files with 84 additions and 147 deletions
|
@ -153,7 +153,7 @@ function SearchScreenSuggestedFollows() {
|
|||
getSuggestions()
|
||||
} catch (e) {
|
||||
logger.error(`SearchScreenSuggestedFollows: failed to get suggestions`, {
|
||||
error: e,
|
||||
message: e,
|
||||
})
|
||||
}
|
||||
}, [currentAccount, setSuggestions, getSuggestedFollowsByActor])
|
||||
|
@ -480,7 +480,7 @@ export function SearchScreen(
|
|||
setSearchHistory(JSON.parse(history))
|
||||
}
|
||||
} catch (e: any) {
|
||||
logger.error('Failed to load search history', e)
|
||||
logger.error('Failed to load search history', {message: e})
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -558,7 +558,7 @@ export function SearchScreen(
|
|||
JSON.stringify(newHistory),
|
||||
)
|
||||
} catch (e: any) {
|
||||
logger.error('Failed to save search history', e)
|
||||
logger.error('Failed to save search history', {message: e})
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -598,7 +598,7 @@ export function SearchScreen(
|
|||
setSearchHistory(updatedHistory)
|
||||
AsyncStorage.setItem('searchHistory', JSON.stringify(updatedHistory)).catch(
|
||||
e => {
|
||||
logger.error('Failed to update search history', e)
|
||||
logger.error('Failed to update search history', {message: e})
|
||||
},
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue