From fe74cd537684a97df239fde462536244529fa4dd Mon Sep 17 00:00:00 2001 From: zachh Date: Fri, 12 Jan 2018 18:03:06 -0800 Subject: Added some verbose logging to Cp2LocalPhoneLookup Test: none PiperOrigin-RevId: 181816649 Change-Id: I4e951366e9458899181fb95230a2815ed5fcdaa8 --- java/com/android/dialer/phonelookup/cp2/Cp2LocalPhoneLookup.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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 { // 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 { 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) -- cgit v1.2.3