Restore previous log when a request fails
This commit is contained in:
parent
0a0e3c3319
commit
3a81521eab
|
@ -55,9 +55,13 @@ internal suspend inline fun <DATA> executeRequest(globalErrorReceiver: GlobalErr
|
|||
else -> throwable
|
||||
}
|
||||
|
||||
// Log some details about the request which has failed. This is less useful than before...
|
||||
// Timber.e("Exception when executing request ${apiCall.request().method} ${apiCall.request().url.toString().substringBefore("?")}")
|
||||
// Log some details about the request which has failed.
|
||||
val request = (throwable as? HttpException)?.response()?.raw()?.request
|
||||
if (request == null) {
|
||||
Timber.e("Exception when executing request")
|
||||
} else {
|
||||
Timber.e("Exception when executing request ${request.method} ${request.url.toString().substringBefore("?")}")
|
||||
}
|
||||
|
||||
// Check if this is a certificateException
|
||||
CertUtil.getCertificateException(exception)
|
||||
|
|
Loading…
Reference in New Issue