Skip to content

Conversation

@c298lee
Copy link
Contributor

@c298lee c298lee commented Nov 14, 2024

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:
image

After:
image

@c298lee c298lee requested a review from a team as a code owner November 14, 2024 20:59
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 14, 2024
Comment on lines 28 to 31
// Logcat and Timber are considered a console frame instead of a custom breadcrumb frame
if (frame.category === 'Logcat' || frame.category === 'Timber') {
frame.category = 'console';
}
Copy link
Member

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
Copy link
Member

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

@c298lee c298lee enabled auto-merge (squash) November 14, 2024 22:09
@c298lee c298lee merged commit ac4a624 into master Nov 14, 2024
42 of 43 checks passed
@c298lee c298lee deleted the cl/logcat-timber branch November 14, 2024 22:22
@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants