-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Logs: adding extra logs for application password card build #22362
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
Logs: adding extra logs for application password card build #22362
Conversation
Generated by 🚫 Danger |
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.
Pull Request Overview
This PR adds comprehensive logging for the Application Password discovery process and card UI lifecycle to aid in debugging and error tracking. The changes introduce consistent "AP:" log prefixes and replace Android's Log with the app's AppLogWrapper.
Key Changes
- Added structured logging throughout the Application Password flow with "AP:" prefix for easier filtering
- Replaced
android.util.LogwithAppLogWrapperfor consistent logging infrastructure - Added debug logs for card visibility decisions (show/hide scenarios)
- Enhanced error logging with more descriptive messages for failure scenarios
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| ApplicationPasswordViewModelSlice.kt | Added AppLogWrapper dependency and debug logs for card build/hide decisions during authentication checks |
| ApplicationPasswordLoginHelper.kt | Replaced Android Log with AppLogWrapper, updated all log messages to use "AP:" prefix, and added error logging for invalid credential data |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...ress/src/main/java/org/wordpress/android/ui/accounts/login/ApplicationPasswordLoginHelper.kt
Show resolved
Hide resolved
|
| App Name | Jetpack | |
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr22362-7859ea0 | |
| Commit | 7859ea0 | |
| Direct Download | jetpack-prototype-build-pr22362-7859ea0.apk |
|
| App Name | WordPress | |
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr22362-7859ea0 | |
| Commit | 7859ea0 | |
| Direct Download | wordpress-prototype-build-pr22362-7859ea0.apk |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## trunk #22362 +/- ##
=======================================
Coverage 39.02% 39.03%
=======================================
Files 2203 2203
Lines 106304 106314 +10
Branches 15057 15057
=======================================
+ Hits 41489 41499 +10
Misses 61326 61326
Partials 3489 3489 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|





Description
This PR is adding new logs for the Application Password discovery process and the card build.
These changes will help us to track possible errors.
Testing instructions
Just check the code, and check the CI is green