Repository navigation
Chore: Add Autofill logging for debug purposes - #7450
Conversation
π€ Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the addition of opt-in verbose Autofill and Accessibility-Autofill logging across two new Code Review Details
|
| * `false` unless you are actively debugging. | ||
| */ | ||
| @VisibleForTesting | ||
| internal const val ENABLE_ACCESSIBILITY_LOGS: Boolean = false |
There was a problem hiding this comment.
Developers only need to enable this to get additional logs for Accessibility Autofill that can prove extremely useful for debugging.
| * you are actively debugging. | ||
| */ | ||
| @VisibleForTesting | ||
| internal const val ENABLE_ASSIST_STRUCTURE_LOGS: Boolean = false |
There was a problem hiding this comment.
Same thing here for the regular Autofill logs
| class LogUtilsTest { | ||
| @Test | ||
| fun `accessibility autofill logs must be disabled`() { | ||
| assertFalse(ENABLE_ACCESSIBILITY_LOGS) |
There was a problem hiding this comment.
These tests are here to ensure that no one ever merges code that enables these logs by accident
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7450 +/- ##
==========================================
+ Coverage 85.91% 85.95% +0.04%
==========================================
Files 911 954 +43
Lines 66236 67787 +1551
Branches 9365 9401 +36
==========================================
+ Hits 56905 58267 +1362
- Misses 5860 6035 +175
- Partials 3471 3485 +14
Flags with carried forward coverage won't be shown. Click here to find out more. β View full report in Codecov by Harness. π New features to boost your workflow:
|
166e459 to
a119f6b
Compare
a119f6b to
f44839a
Compare
|
Thanks @aj-rosado |
ποΈ Tracking
N/A
π Objective
This PR adds Autofill logs that are extremely helpful when debugging. These logs are off by default and should never be enabled in production, or even for regular debug builds but when debugging Autofill specifically, they are extremely useful.