aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-07-05 12:44:47 +0900
committerJean Chalard <jchalard@google.com>2013-07-05 12:44:47 +0900
commitcb13d11c0af95b0621c012be9c01e04a463e40c5 (patch)
tree398cf3b8fa9f948aff4e99dc28f5154cd83814b5
parent9aa1efdf46ce333425466e91061793301307ad01 (diff)
downloadlatinime-cb13d11c0af95b0621c012be9c01e04a463e40c5.tar.gz
latinime-cb13d11c0af95b0621c012be9c01e04a463e40c5.tar.xz
latinime-cb13d11c0af95b0621c012be9c01e04a463e40c5.zip
Add a trace.
Emit a trace when a new dictionary is copied to LatinIME successfully, not just when it fails. That will help diagnosing some problems by being able to ensure this step succeeded looking at the log. This does not happen often (like, maybe 3 times at device activation, and once every few weeks afterwards), so I think the extra line in the log is more than acceptable. Change-Id: I1674bc22d950a7be801076c5aa7e8bbebccab14b
-rw-r--r--java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java b/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java
index 4b5d02716..6e26a587f 100644
--- a/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java
+++ b/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java
@@ -308,6 +308,7 @@ public final class BinaryDictionaryFileDumper {
Log.e(TAG, "Could not have the dictionary pack delete a word list");
}
BinaryDictionaryGetter.removeFilesWithIdExcept(context, wordlistId, finalFile);
+ Log.e(TAG, "Successfully copied file for wordlist ID " + wordlistId);
// Success! Close files (through the finally{} clause) and return.
return;
} catch (Exception e) {