From 52f3007f3edc5d1e5bd50ff4d65885ea09f3d06a Mon Sep 17 00:00:00 2001 From: cketti Date: Thu, 30 Mar 2017 20:15:59 +0200 Subject: [PATCH] Clean up Timber string format arguments --- k9mail/src/main/java/com/fsck/k9/Throttle.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/k9mail/src/main/java/com/fsck/k9/Throttle.java b/k9mail/src/main/java/com/fsck/k9/Throttle.java index 31be4942c..57272ecb9 100644 --- a/k9mail/src/main/java/com/fsck/k9/Throttle.java +++ b/k9mail/src/main/java/com/fsck/k9/Throttle.java @@ -83,7 +83,7 @@ public class Throttle { public void cancelScheduledCallback() { if (runningTimerTask != null) { - Timber.d("Throttle: [%s] %s", name, "Canceling scheduled callback"); + Timber.d("Throttle: [%s] Canceling scheduled callback", name); runningTimerTask.cancel(); runningTimerTask = null; } @@ -96,24 +96,24 @@ public class Throttle { if (currentTimeout >= maxTimeout) { currentTimeout = maxTimeout; } - Timber.d("Throttle: [%s] %s", name, "Timeout extended " + currentTimeout); + Timber.d("Throttle: [%s] Timeout extended %d", name, currentTimeout); } else { currentTimeout = minTimeout; - Timber.d("Throttle: [%s] %s", name, "Timeout reset to " + currentTimeout); + Timber.d("Throttle: [%s] Timeout reset to %d", name, currentTimeout); } lastEventTime = now; } public void onEvent() { - Timber.d("Throttle: [%s] %s", name, "onEvent"); + Timber.d("Throttle: [%s] onEvent", name); updateTimeout(); if (isCallbackScheduled()) { - Timber.d("Throttle: [%s] %s", name, " callback already scheduled"); + Timber.d("Throttle: [%s] callback already scheduled", name); } else { - Timber.d("Throttle: [%s] %s", name, " scheduling callback"); + Timber.d("Throttle: [%s] scheduling callback", name); runningTimerTask = new MyTimerTask(); timer.schedule(runningTimerTask, currentTimeout); } @@ -141,7 +141,7 @@ public class Throttle { public void run() { runningTimerTask = null; if (!mCanceled) { // This check has to be done on the UI thread. - Timber.d("Throttle: [%s] %s", name, "Kicking callback"); + Timber.d("Throttle: [%s] Kicking callback", name); callback.run(); } }