1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-02 00:25:10 -04:00

Reduce logging level, and make Logs only happen when K9.DEBUG is true.

This commit is contained in:
Daniel Applebaum 2010-04-27 05:00:08 +00:00
parent 0459be3bb8
commit 4c6df71fe1

View File

@ -78,7 +78,8 @@ public class MessagingControllerPushReceiver implements PushReceiver
public void syncFolder(Folder folder)
{
Log.i(K9.LOG_TAG, "syncFolder(" + folder.getName() + ")");
if (K9.DEBUG)
Log.v(K9.LOG_TAG, "syncFolder(" + folder.getName() + ")");
final CountDownLatch latch = new CountDownLatch(1);
controller.synchronizeMailbox(account, folder.getName(), new MessagingListener()
{
@ -95,11 +96,13 @@ public class MessagingControllerPushReceiver implements PushReceiver
}
});
Log.i(K9.LOG_TAG, "syncFolder(" + folder.getName() + ") about to await latch release");
if (K9.DEBUG)
Log.v(K9.LOG_TAG, "syncFolder(" + folder.getName() + ") about to await latch release");
try
{
latch.await();
Log.i(K9.LOG_TAG, "syncFolder(" + folder.getName() + ") got latch release");
if (K9.DEBUG)
Log.v(K9.LOG_TAG, "syncFolder(" + folder.getName() + ") got latch release");
}
catch (Exception e)
{