summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachh <zachh@google.com>2018-01-12 18:03:06 -0800
committerCopybara-Service <copybara-piper@google.com>2018-01-12 20:39:44 -0800
commitfe74cd537684a97df239fde462536244529fa4dd (patch)
tree0b35545cb860e54317035c44caf5279b164830e2
parente953507051228ead255b0f694801d6087c62bb20 (diff)
Added some verbose logging to Cp2LocalPhoneLookup
Test: none PiperOrigin-RevId: 181816649 Change-Id: I4e951366e9458899181fb95230a2815ed5fcdaa8
-rw-r--r--java/com/android/dialer/phonelookup/cp2/Cp2LocalPhoneLookup.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/com/android/dialer/phonelookup/cp2/Cp2LocalPhoneLookup.java b/java/com/android/dialer/phonelookup/cp2/Cp2LocalPhoneLookup.java
index eede0f1b0..c6e7f5aa3 100644
--- a/java/com/android/dialer/phonelookup/cp2/Cp2LocalPhoneLookup.java
+++ b/java/com/android/dialer/phonelookup/cp2/Cp2LocalPhoneLookup.java
@@ -159,6 +159,10 @@ public final class Cp2LocalPhoneLookup implements PhoneLookup<Cp2Info> {
// queries; since running this many queries is not feasible for the (lightweight) isDirty
// check, simply return true. The expectation is that this should rarely be the case as the
// vast majority of numbers in call logs should be valid.
+ LogUtil.v(
+ "Cp2LocalPhoneLookup.isDirty",
+ "returning true because too many invalid numbers (%d)",
+ partitionedNumbers.invalidNumbers().size());
return Futures.immediateFuture(true);
}
@@ -713,6 +717,10 @@ public final class Cp2LocalPhoneLookup implements PhoneLookup<Cp2Info> {
for (DialerPhoneNumber dialerPhoneNumber : updatedNumbers) {
map.put(dialerPhoneNumber, ImmutableSet.of());
}
+ LogUtil.v(
+ "Cp2LocalPhoneLookup.buildMapForUpdatedOrAddedContacts",
+ "found %d numbers that may need updating",
+ updatedNumbers.size());
return map;
};
return Futures.whenAllSucceed(validNumbersFuture, invalidNumbersFuture)