Make serializer logging respect user's debug setting

* We now check that the user has verbose debug logging on
  before spamming with serializer logging

Bug: 2561834
Change-Id: I5eda2ca5f16cde728b0febaa990d66fc99bb93a0
diff --git a/src/com/android/exchange/EasSyncService.java b/src/com/android/exchange/EasSyncService.java
index 0d6695f..62ab71d 100644
--- a/src/com/android/exchange/EasSyncService.java
+++ b/src/com/android/exchange/EasSyncService.java
@@ -84,9 +84,9 @@
 import android.os.SystemClock;
 import android.provider.Calendar.Attendees;
 import android.provider.Calendar.Events;
+import android.util.Base64;
 import android.util.Log;
 import android.util.Xml;
-import android.util.Base64;
 
 import java.io.ByteArrayOutputStream;
 import java.io.File;
@@ -1820,7 +1820,7 @@
             String className = target.getCollectionName();
 
             // STOPSHIP Remove the following if statement; temporary logging for Calendar sync
-            if (className.equals("Calendar")) {
+            if (className.equals("Calendar") && Eas.PARSER_LOG) {
                 s = new Serializer(true, true);
             }