-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Report all non fatals to firebase #2914
Conversation
dcb80ec
to
75a6bf3
Compare
📝 WalkthroughWalkthroughThe pull request introduces modifications to two logging classes: Possibly related PRs
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
app/src/org/commcare/logging/AndroidLogger.java (1)
86-89
: Consider adding documentation for exception handling strategyWhile the implementation is correct, it would be helpful to document the distinction between regular logging (using
CrashUtil.log
) and exception reporting (usingCrashUtil.reportException
) in the class-level documentation.Consider adding this documentation:
/** * Logging engine for CommCare ODK Environments. + * + * This logger provides two types of logging: + * 1. Regular logging via log() method which uses CrashUtil.log + * 2. Exception logging via logException() method which reports to Firebase Crashlytics * * @author ctsims */
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
app/src/org/commcare/logging/AndroidLogger.java
(1 hunks)app/src/org/commcare/logging/PreInitLogger.java
(2 hunks)
🔇 Additional comments (3)
app/src/org/commcare/logging/PreInitLogger.java (2)
4-4
: LGTM: Import addition is appropriate
The CrashUtil import is correctly placed and necessary for the new exception reporting functionality.
77-80
: LGTM: Clean implementation of exception logging
The implementation is straightforward and correctly delegates to CrashUtil.reportException. This aligns with the PR's objective of reporting non-fatal errors to Firebase.
app/src/org/commcare/logging/AndroidLogger.java (1)
86-89
: LGTM: Clean implementation of exception logging
The implementation correctly delegates to CrashUtil.reportException and maintains consistency with PreInitLogger's implementation.
bf98668
to
4de1c0b
Compare
@damagatchi retest this please |
@shubham1g5 is there a reason for skipping the integration tests here? |
Just because it's a very minute change not affecting any functionality. |
Summary
Reports all non fatals to Firebase Crashlytics
PR Checklist
Automated test coverage
NA
Safety story
Minor logs handling.
cross-request: dimagi/commcare-core#1453