Skip to content

Commit

Permalink
Add logs for errors coming from Credential the Manager API
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomazFB committed Jan 29, 2024
1 parent 5609ded commit 2ca49f5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package org.wordpress.android.login.webauthn
import android.content.Context
import android.os.CancellationSignal
import android.util.Log
import androidx.annotation.RequiresApi
import androidx.credentials.CredentialManager
import androidx.credentials.CredentialManagerCallback
import androidx.credentials.GetCredentialRequest
Expand Down Expand Up @@ -45,6 +44,7 @@ class CredentialManagerHandler(
callback = object : CredentialManagerCallback<GetCredentialResponse, GetCredentialException> {
override fun onError(e: GetCredentialException) {
onFailure(e)
Log.e("Credential Manager error", e.stackTraceToString())
}

override fun onResult(result: GetCredentialResponse) {
Expand All @@ -57,7 +57,7 @@ class CredentialManagerHandler(
}
)
} catch (e: GetCredentialException) {
Log.e("Error", e.stackTraceToString())
Log.e("Credential Manager error", e.stackTraceToString())
onFailure(e)
}
}
Expand Down

0 comments on commit 2ca49f5

Please sign in to comment.