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

RUMM-1796 Crash Reporting Logging #712

Merged
merged 3 commits into from Jan 14, 2022

Conversation

maxep
Copy link
Member

@maxep maxep commented Jan 10, 2022

What and why?

Add logs to crash reporting.

How?

Inject user and internal logger to crash reporting plugin.

Review checklist

  • Make sure each commit and the PR mention the Issue number or JIRA reference

Sources/Datadog/Logger.swift Outdated Show resolved Hide resolved
@maxep maxep self-assigned this Jan 11, 2022
@maxep maxep force-pushed the maxep/RUMM-1796/crash-reporting-user-log branch from 2f1cfd6 to 2111e00 Compare January 12, 2022 10:15
@maxep maxep marked this pull request as ready for review January 12, 2022 10:17
@maxep maxep requested a review from a team as a code owner January 12, 2022 10:17
@maxep maxep force-pushed the maxep/RUMM-1796/crash-reporting-user-log branch from 2111e00 to 3c6e614 Compare January 12, 2022 11:04
Copy link
Collaborator

@ncreated ncreated left a comment

Choose a reason for hiding this comment

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

Looks good 👍. I left wording suggestions and change request on error: error (see the comment).

@maxep maxep requested a review from ncreated January 12, 2022 15:29
@maxep maxep force-pushed the maxep/RUMM-1796/crash-reporting-user-log branch 2 times, most recently from a75f971 to 05624b1 Compare January 12, 2022 16:31
@maxep maxep force-pushed the maxep/RUMM-1796/crash-reporting-user-log branch from b9a8a80 to 8e9a82b Compare January 13, 2022 13:35
Copy link
Collaborator

@ncreated ncreated left a comment

Choose a reason for hiding this comment

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

LG 👍 , though what about this from RUMM-1796:

  • print INFO log determining if the crash report is found after app launch, or if it's missing;

sendCrashReportIfFound() seems a good place for it, no?

Problem was CR's `queue` leaking reference to global `userLogger` and running
into threading race conditions on this being replaced by SDK's tear down logic in tests.
@maxep maxep merged commit f15a4cf into master Jan 14, 2022
@maxep maxep deleted the maxep/RUMM-1796/crash-reporting-user-log branch January 14, 2022 11:56
@ncreated ncreated mentioned this pull request Jan 20, 2022
2 tasks
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.

None yet

2 participants