aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/research/MainLogBuffer.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2012-08-12 13:54:53 -0700
committerKurt Partridge <kep@google.com>2012-12-17 21:39:35 -0800
commit1a2733683769e6f1267c86768131fc89bbb4b3d6 (patch)
tree27a3f4984b4c562d01df14d9f0dc9c91fa85b0ac /java/src/com/android/inputmethod/research/MainLogBuffer.java
parent48160f9d847c0246883bc81599613b1ebe2652a6 (diff)
downloadlatinime-1a2733683769e6f1267c86768131fc89bbb4b3d6.tar.gz
latinime-1a2733683769e6f1267c86768131fc89bbb4b3d6.tar.xz
latinime-1a2733683769e6f1267c86768131fc89bbb4b3d6.zip
[Rlog4] ResearchLogger add LOG_EVERYTHING flag
- broaden OUTPUT_WHOLE_BUFFER to log not just the buffer at the end, but everything along the way. This should only be set when the user is aware that logging is on, e.g. in a user test. Change-Id: I8f9874697524e533586da40d0a3e452f6a04d3e4
Diffstat (limited to 'java/src/com/android/inputmethod/research/MainLogBuffer.java')
-rw-r--r--java/src/com/android/inputmethod/research/MainLogBuffer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/research/MainLogBuffer.java b/java/src/com/android/inputmethod/research/MainLogBuffer.java
index 12c189f4a..b027643a1 100644
--- a/java/src/com/android/inputmethod/research/MainLogBuffer.java
+++ b/java/src/com/android/inputmethod/research/MainLogBuffer.java
@@ -119,6 +119,10 @@ public class MainLogBuffer extends LogBuffer {
} else {
// Words not in the dictionary are a privacy threat.
if (ResearchLogger.hasLetters(word) && !(dictionary.isValidWord(word))) {
+ if (DEBUG) {
+ Log.d(TAG, "NOT SAFE!: hasLetters: " + ResearchLogger.hasLetters(word)
+ + ", isValid: " + (dictionary.isValidWord(word)));
+ }
return false;
}
}