diff options
| author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-01-26 11:35:10 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-26 11:35:10 +0530 |
| commit | 2c78470642905fbaedbda02801e716dd33b70cb5 (patch) | |
| tree | 5848829657dfd350d2c9b4892b9338ec1c563620 /app/src/main/java/com/zeapo/pwdstore/utils/auth | |
| parent | 14f1fa65381375149dbb3fcdba578b6b4799645e (diff) | |
| download | HardenedPass-2c78470642905fbaedbda02801e716dd33b70cb5.tar.gz HardenedPass-2c78470642905fbaedbda02801e716dd33b70cb5.zip | |
Switch to Timber for logging (#617)
* Switch to Timber for logging
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
* Update changelog
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
* Fix rebase error
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
Diffstat (limited to 'app/src/main/java/com/zeapo/pwdstore/utils/auth')
| -rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt b/app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt index 71e5df54..908cc507 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt +++ b/app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt @@ -5,11 +5,11 @@ package com.zeapo.pwdstore.utils.auth import android.os.Handler -import android.util.Log import androidx.biometric.BiometricManager import androidx.biometric.BiometricPrompt import androidx.fragment.app.FragmentActivity import com.zeapo.pwdstore.R +import timber.log.Timber internal class Authenticator( private val fragmentActivity: FragmentActivity, @@ -22,19 +22,19 @@ internal class Authenticator( override fun onAuthenticationError(errorCode: Int, errString: CharSequence) { super.onAuthenticationError(errorCode, errString) - Log.d(TAG, "Error: $errorCode: $errString") + Timber.tag(TAG).d("Error: $errorCode: $errString") callback(AuthenticationResult.UnrecoverableError(errorCode, errString)) } override fun onAuthenticationFailed() { super.onAuthenticationFailed() - Log.d(TAG, "Failed") + Timber.tag(TAG).d("Failed") callback(AuthenticationResult.Failure) } override fun onAuthenticationSucceeded(result: BiometricPrompt.AuthenticationResult) { super.onAuthenticationSucceeded(result) - Log.d(TAG, "Success") + Timber.tag(TAG).d("Success") callback(AuthenticationResult.Success(result.cryptoObject)) } } |
