Automattic / Automattic/EncryptedLogging

Offer a Suspending API for `EncryptedLogging.enqueueSendingEncryptedLogs(...)`

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

This came as an idea after working on [WCAndroid#14711](https://github.com/woocommerce/woocommerce-android/pull/14711), where we identified a limitation of using `appCoroutineScope.launch { ... }` with `encryptedLogging.enqueueSendingEncryptedLogs(...)` for `FATAL` errors.

For more info see (Internal discussion): p1759832867149029-slack-CGPNUU63E

---

FYI: Another idea to address this issue, from a different angle, could be:

- In case of `FATAL` error, store an "intent" of sending logs in the future.
- On the next app resume, check the "intent" and collect logs then (because they’re stored now on the disk).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.