Enable logging OkHttp traffic based on the current log level (#5750)

* Use `LogLevel` to decide whether to log the HTTP requests and responses

Added `DynamicHttpLoggingInterceptor` for this.

* Code cleanup.

* Use Timber.d

* OutOfMemoryError should not be caught. They are considered unrecoverable.

* Improve code in DefaultBugReporter.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
This commit is contained in:
Jorge Martin Espinosa
2025-11-18 15:18:27 +01:00
committed by GitHub
parent 740e486cd0
commit bf0274074d
8 changed files with 72 additions and 40 deletions
@@ -45,5 +45,5 @@ interface BugReporter {
/**
* Save the logcat.
*/
fun saveLogCat()
fun saveLogCat(): File?
}