From f8994f6491aafd00a0ff302769535a25deab7607 Mon Sep 17 00:00:00 2001 From: Daniel Applebaum Date: Mon, 17 May 2010 01:04:42 +0000 Subject: [PATCH] Turn off tracing by default. Lower log level. --- .../fsck/k9/helper/power/TracingPowerManager.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/com/fsck/k9/helper/power/TracingPowerManager.java b/src/com/fsck/k9/helper/power/TracingPowerManager.java index 2a0f975a1..5e26a5d63 100644 --- a/src/com/fsck/k9/helper/power/TracingPowerManager.java +++ b/src/com/fsck/k9/helper/power/TracingPowerManager.java @@ -12,11 +12,11 @@ import android.util.Log; public class TracingPowerManager { - private final static boolean TRACE = true; + private final static boolean TRACE = false; public static AtomicInteger wakeLockId = new AtomicInteger(0); PowerManager pm = null; private static TracingPowerManager tracingPowerManager; - private Timer timer; + private Timer timer = null; public static synchronized TracingPowerManager getPowerManager(Context context) { @@ -24,7 +24,7 @@ public class TracingPowerManager { if (K9.DEBUG) { - Log.i(K9.LOG_TAG, "Creating TracingPowerManager"); + Log.v(K9.LOG_TAG, "Creating TracingPowerManager"); } tracingPowerManager = new TracingPowerManager(context); } @@ -58,14 +58,14 @@ public class TracingPowerManager id = wakeLockId.getAndIncrement(); if (K9.DEBUG) { - Log.i(K9.LOG_TAG, "Creating TracingWakeLock for tag " + tag + " with id " + id); + Log.v(K9.LOG_TAG, "Creating TracingWakeLock for tag " + tag + " with id " + id); } } public void acquire(long timeout) { if (K9.DEBUG) { - Log.i(K9.LOG_TAG, "Acquiring TracingWakeLock for tag " + tag + " and id " + id + Log.v(K9.LOG_TAG, "Acquiring TracingWakeLock for tag " + tag + " and id " + id + " for " + timeout + " ms"); } raiseNotification(); @@ -76,7 +76,7 @@ public class TracingPowerManager { if (K9.DEBUG) { - Log.i(K9.LOG_TAG, "Acquiring TracingWakeLock for tag " + tag + " and id " + id + Log.v(K9.LOG_TAG, "Acquiring TracingWakeLock for tag " + tag + " and id " + id + " with no timeout"); } raiseNotification(); @@ -90,7 +90,7 @@ public class TracingPowerManager { if (K9.DEBUG) { - Log.i(K9.LOG_TAG, "Releasing TracingWakeLock for tag " + tag + " and id " + id ); + Log.v(K9.LOG_TAG, "Releasing TracingWakeLock for tag " + tag + " and id " + id ); } wakeLock.release(); cancelNotification();