1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-25 15:11:52 -05:00

Change WakeLock management logging to verbose level (now that it is

working)
This commit is contained in:
Daniel Applebaum 2010-01-22 05:55:58 +00:00
parent 4ced2fa0e1
commit 9cd52d5ef3

View File

@ -32,7 +32,7 @@ public class CoreReceiver extends BroadcastReceiver
Integer tmpWakeLockId = wakeLockSeq.getAndIncrement(); Integer tmpWakeLockId = wakeLockSeq.getAndIncrement();
wakeLocks.put(tmpWakeLockId, wakeLock); wakeLocks.put(tmpWakeLockId, wakeLock);
if (K9.DEBUG) if (K9.DEBUG)
Log.i(K9.LOG_TAG, "CoreReceiver Created wakeLock " + tmpWakeLockId); Log.v(K9.LOG_TAG, "CoreReceiver Created wakeLock " + tmpWakeLockId);
return tmpWakeLockId; return tmpWakeLockId;
} }
@ -44,7 +44,7 @@ public class CoreReceiver extends BroadcastReceiver
if (wl != null) if (wl != null)
{ {
if (K9.DEBUG) if (K9.DEBUG)
Log.i(K9.LOG_TAG, "CoreReceiver Releasing wakeLock " + wakeLockId); Log.v(K9.LOG_TAG, "CoreReceiver Releasing wakeLock " + wakeLockId);
wl.release(); wl.release();
} }
else else
@ -67,7 +67,7 @@ public class CoreReceiver extends BroadcastReceiver
if (wakeLockId != -1) if (wakeLockId != -1)
{ {
if (K9.DEBUG) if (K9.DEBUG)
Log.i(K9.LOG_TAG, "CoreReceiver Release wakeLock " + wakeLockId); Log.v(K9.LOG_TAG, "CoreReceiver Release wakeLock " + wakeLockId);
CoreReceiver.releaseWakeLock(wakeLockId); CoreReceiver.releaseWakeLock(wakeLockId);
} }
} }
@ -90,7 +90,7 @@ public class CoreReceiver extends BroadcastReceiver
public static void releaseWakeLock(Context context, int wakeLockId) public static void releaseWakeLock(Context context, int wakeLockId)
{ {
if (K9.DEBUG) if (K9.DEBUG)
Log.i(K9.LOG_TAG, "CoreReceiver Got request to release wakeLock " + wakeLockId); Log.v(K9.LOG_TAG, "CoreReceiver Got request to release wakeLock " + wakeLockId);
Intent i = new Intent(); Intent i = new Intent();
i.setClass(context, CoreReceiver.class); i.setClass(context, CoreReceiver.class);
i.setAction(WAKE_LOCK_RELEASE); i.setAction(WAKE_LOCK_RELEASE);