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/Otp.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src/main/java/com/zeapo/pwdstore/utils/Otp.java') diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/Otp.java b/app/src/main/java/com/zeapo/pwdstore/utils/Otp.java index a2ee2488..0092d085 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/Otp.java +++ b/app/src/main/java/com/zeapo/pwdstore/utils/Otp.java @@ -4,7 +4,6 @@ */ package com.zeapo.pwdstore.utils; -import android.util.Log; import java.math.BigInteger; import java.nio.ByteBuffer; import java.security.InvalidKeyException; @@ -13,6 +12,7 @@ import java.util.Arrays; import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; import org.apache.commons.codec.binary.Base32; +import timber.log.Timber; public class Otp { @@ -34,10 +34,10 @@ public class Otp { mac = Mac.getInstance(ALGORITHM); mac.init(signingKey); } catch (NoSuchAlgorithmException e) { - Log.e("TOTP", ALGORITHM + " unavailable - should never happen", e); + Timber.tag("TOTP").e(e, "%s unavailable - should never happen", ALGORITHM); return null; } catch (InvalidKeyException e) { - Log.e("TOTP", "Key is malformed", e); + Timber.tag("TOTP").e(e, "Key is malformed"); return null; } -- cgit v1.2.3