From 9d43de5d1206eb54c4486cefec44a7bbd810bada Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Sat, 19 Sep 2009 22:17:36 -0700 Subject: [PATCH] Remove parser logging from standard SD logging * Change description for one of the logging labels to reflect what it actually does Change-Id: Ib07b7330a20af5b099b42ae3733b71641c4bddd9 --- res/values/strings.xml | 2 +- src/com/android/exchange/Eas.java | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 294c2bb77..22b644b25 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -165,7 +165,7 @@ Enable sensitive information debug logging? (May show passwords in logs.) - Enable exchange debug logging? + Enable exchange parser logging? (Extremely verbose) Enable exchange sd card logging? diff --git a/src/com/android/exchange/Eas.java b/src/com/android/exchange/Eas.java index 9ecb77f41..3702222fb 100644 --- a/src/com/android/exchange/Eas.java +++ b/src/com/android/exchange/Eas.java @@ -76,10 +76,7 @@ public class Eas { USER_LOG = (state & DEBUG_BIT) != 0; PARSER_LOG = (state & DEBUG_EXCHANGE_BIT) != 0; FILE_LOG = (state & DEBUG_FILE_BIT) != 0; - if (FILE_LOG) { - PARSER_LOG = true; - USER_LOG = true; - } else if (PARSER_LOG) { + if (FILE_LOG || PARSER_LOG) { USER_LOG = true; } Log.d("Eas Debug", "Logging: " + (USER_LOG ? "User " : "") +