From 05530d4c3389f3107d1b8c0060110c95a75ef5bc Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Thu, 30 Sep 2010 08:31:13 -0700 Subject: [PATCH] Allow Serializer logging via isLoggable Change-Id: Ie6c0257a3fa854d7abc92a82b690884ce2a4cb4c --- src/com/android/exchange/adapter/Serializer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/exchange/adapter/Serializer.java b/src/com/android/exchange/adapter/Serializer.java index daedec2cf..97b7e6d94 100644 --- a/src/com/android/exchange/adapter/Serializer.java +++ b/src/com/android/exchange/adapter/Serializer.java @@ -23,6 +23,7 @@ package com.android.exchange.adapter; +import com.android.email.Email; import com.android.exchange.Eas; import com.android.exchange.utility.FileLogger; @@ -37,7 +38,7 @@ import java.util.Hashtable; public class Serializer { private static final String TAG = "Serializer"; - private boolean logging = false; // DO NOT CHECK IN WITH THIS TRUE! + private final boolean logging = Email.DEBUG && Log.isLoggable(TAG, Log.VERBOSE); private static final int NOT_PENDING = -1;