Skip to content

Commit eb9a42d

Browse files
authored
ref(sdk): Change "Unexpected navigation redirect" to use logging (#102422)
This PR changes the `captureMessage` call to use logging instead. **Feel free to close this if you want to keep it as an issue!** Some reasons you may want to keep it as an issue: * You need/want issue workflow (e.g. assignment) * You need an associated stacktrace * You want a guaranteed replay with the issue
1 parent 47c69d1 commit eb9a42d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

static/app/views/nav/useRedirectNavV2Routes.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,9 @@ function useLogUnexpectedNavigationRedirect({shouldRedirect}: {shouldRedirect: b
3737

3838
useEffect(() => {
3939
if (shouldRedirect && lastKnownRoute !== routeString) {
40-
Sentry.captureMessage('Unexpected navigation redirect', {
41-
level: 'warning',
42-
tags: {
43-
last_known_route: lastKnownRoute,
44-
route: routeString,
45-
},
40+
Sentry.logger.warn('Unexpected navigation redirect', {
41+
last_known_route: lastKnownRoute,
42+
route: routeString,
4643
});
4744
}
4845
}, [lastKnownRoute, shouldRedirect, routeString]);

0 commit comments

Comments
 (0)