fix: demote spurious ANR log from warn to info#2660
Merged
Conversation
At warn-level, this creates too much volume so that real warning level logs are overwhelmed by this. This also includes ANRs that are not because of onesignal, and eventually those get reported anyway, so we don't need another spurious warning log.
Contributor
📊 Diff Coverage ReportDiff Coverage Report (Changed Lines Only)Gate: aggregate coverage on changed executable lines must be ≥ 80% (JaCoCo line data for lines touched in the diff). Changed Files Coverage
Overall (aggregate gate)0/1 touched executable lines covered (0.0% — requires ≥ 80%) Per-file detail (informational; gate is aggregate above):
❌ Coverage Check FailedAggregate coverage on touched lines is 0.0% (minimum 80%). |
fadi-george
approved these changes
Jun 9, 2026
This was referenced Jun 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
One Line Summary
Demote a log from warn to info, and we send the exception log anyway down the line.
Details
If we set apps to WARN level, we get a lot of spurious "⚠️ ANR detected" warning logs that overwhelm the real warning-level logs. This also logs when the ANR is not due to OneSignal, so it is extraneous.
If the ANR is due to the SDK, we do send the exception to our logging service anyway:
Motivation
Logs are overwhelmed by this spurious warning.
Scope
logging only
Testing
Unit testing
None
Manual testing
Seeing a lot of these logs in logcat
Affected code checklist
Checklist
Overview
Testing
Final pass