From e2f84c4fa8441606426ab3c24c5e7e1cf57fc015 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 27 Dec 2009 16:51:59 +0000 Subject: [PATCH] wrap a debug message in a debug-mode check; eliminate a temporary variable --- src/com/fsck/k9/MessagingController.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/com/fsck/k9/MessagingController.java b/src/com/fsck/k9/MessagingController.java index 61b032561..d87d4dfeb 100644 --- a/src/com/fsck/k9/MessagingController.java +++ b/src/com/fsck/k9/MessagingController.java @@ -726,8 +726,11 @@ public class MessagingController implements Runnable { return; } - String debugLine = "Synchronizing folder " + account.getDescription() + ":" + folder; - Log.i(K9.LOG_TAG, debugLine); + + if (K9.DEBUG) + { + Log.i(K9.LOG_TAG, "Synchronizing folder " + account.getDescription() + ":" + folder); + } for (MessagingListener l : getListeners()) {