Bug 765797 - Only log generated record string for incoming records if Logger.LOG_PERSONAL_INFORMATION is set. r=liuche

--HG--
extra : rebase_source : 35d9924d94ca3093a02e6f820769131f96296afb
This commit is contained in:
Nick Alexander 2012-06-19 10:35:06 -07:00
parent 01e8b1d2b1
commit ce8ece9c94

View File

@ -646,10 +646,14 @@ public abstract class AndroidBrowserRepositorySession extends StoreTrackingRepos
return null;
}
Logger.debug(LOG_TAG, "Searching with record string " + recordString);
if (Logger.LOG_PERSONAL_INFORMATION) {
Logger.pii(LOG_TAG, "Searching with record string " + recordString);
} else {
Logger.debug(LOG_TAG, "Searching with record string.");
}
String guid = getGuidForString(recordString);
if (guid == null) {
Logger.debug(LOG_TAG, "findExistingRecord failed to find one for " + record.guid);
Logger.debug(LOG_TAG, "Failed to find existing record for " + record.guid);
return null;
}