From 2c78470642905fbaedbda02801e716dd33b70cb5 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 26 Jan 2020 11:35:10 +0530 Subject: Switch to Timber for logging (#617) * Switch to Timber for logging Signed-off-by: Harsh Shandilya * Update changelog Signed-off-by: Harsh Shandilya * Fix rebase error Signed-off-by: Harsh Shandilya --- app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/src/main/java/com/zeapo/pwdstore/utils/auth') 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)) } } -- cgit v1.2.3