Skip to content

Commit

Permalink
fix: Log the exception class name with the ApiException logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivamNagpal committed Mar 25, 2023
1 parent 3c322a1 commit 588662f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@ fun <T : Any> logNetworkResultException(
url: String,
networkResult: ApiException<T>
) {
Log.e(logTag, "Call to $url failed with exception", networkResult.throwable)
Log.e(
logTag,
"Call to $url failed with exception: ${networkResult.throwable.javaClass.name}",
networkResult.throwable
)
}

0 comments on commit 588662f

Please sign in to comment.