mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-16 22:45:04 -05:00
Reduce logging level, and make Logs only happen when K9.DEBUG is true.
This commit is contained in:
parent
0459be3bb8
commit
4c6df71fe1
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user