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:
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?
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue