Skip to content
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

fix: Do not log geolocation plugin log in sentry #1158

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

zatteo
Copy link
Contributor

@zatteo zatteo commented Feb 2, 2024

No description provided.

hasSentryEnabled is set before toggleLocalSentry is called. So in Sentry configuration, enabled stays to false.
Copy link
Member

@Ldoppea Ldoppea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by They could be added in breadcrumb ?

I had to check to understand, so it is worth to mention that this works because devlog() does nothing in production

Our config only send warn and error logs to Sentry. But when an error log is sent to Sentry,
previous logs, including info logs, are also sent with it (in the "breadcrumb" field from Sentry).
This is an issue because we currently log geolocation data as info logs. So sometimes
geolocation data can be sent to Sentry if it is logged just before an error.

devlog solves the issue because it does NOT log in production mode. geolocation plugin log
will still be available in dev console and through the "Send logs" button in coachco2.
@zatteo zatteo force-pushed the fix/geolocation-data-log branch from b5cf1d7 to 6c60ca7 Compare February 7, 2024 09:16
@zatteo
Copy link
Contributor Author

zatteo commented Feb 7, 2024

What do you mean by They could be added in breadcrumb ?

I had to check to understand, so it is worth to mention that this works because devlog() does nothing in production

Updated with a more complete commit message 👍

@zatteo zatteo merged commit d6c3800 into master Feb 7, 2024
1 check passed
@zatteo zatteo deleted the fix/geolocation-data-log branch February 7, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants