Commit b197ac7d authored by Ricki Hirner's avatar Ricki Hirner

Show HTTP request/response in debug info

parent 9aa58d17
......@@ -151,10 +151,14 @@ class DebugInfoActivity: AppCompatActivity(), LoaderManager.LoaderCallbacks<Stri
val throwable = extras?.getSerializable(KEY_THROWABLE) as Throwable?
if (throwable is HttpException) {
throwable.request?.let {
report.append("\nHTTP REQUEST:\n$it\n\n")
report.append("\nHTTP REQUEST:\n$it\n")
throwable.requestBody?.let { report.append(it) }
throwable.response?.let {
report.append("HTTP RESPONSE:\n$it\n")
throwable.responseBody?.let { report.append(it) }
Subproject commit 83bad4d416d446a0fe8a4d0a32253dea9aca8a51
Subproject commit f53ae9e9f354486d732c98072be5087486e74f7b
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment