-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ref(replay): Change Logcat and Timber frames to console frames #80777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| // Logcat and Timber are considered a console frame instead of a custom breadcrumb frame | ||
| if (frame.category === 'Logcat' || frame.category === 'Timber') { | ||
| frame.category = 'console'; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be careful of doing this as we would be mutating the original frame... if we wanted to preserve the original frame, we could instead move the logic down to the return value. that way we can avoid any mutations to the original frame object.
| } | ||
| return { | ||
| ...frame, | ||
| // Logcat and Timber are considered a console frame instead of a custom breadcrumb frame |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe note that this is for mobile replays
For mobile replays, we use Logcat and Timber as loggers, so we want them to show up in the console tab instead of the breadcrumbs tab.
Before:

After:
