From 7f386acdd1bcf7bfd6b48ee4d01bf3f2dc52e2ce Mon Sep 17 00:00:00 2001 From: Dan Zivkovic Date: Tue, 7 Apr 2015 11:43:18 -0700 Subject: [PATCH] Make logs less spammy. Bug 19987461. Change-Id: Ibf58f2b26c2d01f765ef32abb47c84be49e2ba9f --- .../spellcheck/AndroidWordLevelSpellCheckerSession.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/java/src/com/android/inputmethod/latin/spellcheck/AndroidWordLevelSpellCheckerSession.java b/java/src/com/android/inputmethod/latin/spellcheck/AndroidWordLevelSpellCheckerSession.java index fea6fc782..fd5c54c09 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/AndroidWordLevelSpellCheckerSession.java +++ b/java/src/com/android/inputmethod/latin/spellcheck/AndroidWordLevelSpellCheckerSession.java @@ -271,10 +271,14 @@ public abstract class AndroidWordLevelSpellCheckerSession extends Session { final int capitalizeType = StringUtils.getCapitalizationType(text); if (isInDictForAnyCapitalization(text, capitalizeType)) { - Log.i(TAG, "onGetSuggestionsInternal() : [" + text + "] is a valid word"); + if (DebugFlags.DEBUG_ENABLED) { + Log.i(TAG, "onGetSuggestionsInternal() : [" + text + "] is a valid word"); + } return AndroidSpellCheckerService.getInDictEmptySuggestions(); } - Log.i(TAG, "onGetSuggestionsInternal() : [" + text + "] is NOT a valid word"); + if (DebugFlags.DEBUG_ENABLED) { + Log.i(TAG, "onGetSuggestionsInternal() : [" + text + "] is NOT a valid word"); + } final Keyboard keyboard = mService.getKeyboardForLocale(mLocale); if (null == keyboard) {