Commit be6244ab authored by zea@chromium.org's avatar zea@chromium.org

[Sync] Set logging that may contain personal information to verbosity level 2.

BUG=68954
TEST=Sign into sync for first time with --vmodule="*/sync/*"=1 and see what gets printed

Review URL: http://codereview.chromium.org/6534013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75336 0039d316-1c4b-4281-b951-d872f2087c98
parent 36ce61b1
......@@ -74,7 +74,7 @@ void DownloadUpdatesCommand::ExecuteImpl(SyncSession* session) {
&update_response,
session);
VLOG(1) << SyncerProtoUtil::ClientToServerResponseDebugString(
VLOG(2) << SyncerProtoUtil::ClientToServerResponseDebugString(
update_response);
StatusController* status = session->status_controller();
......
......@@ -516,7 +516,7 @@ void SyncerUtil::UpdateLocalDataFromServerData(
DCHECK(!entry->Get(IS_UNSYNCED));
DCHECK(entry->Get(IS_UNAPPLIED_UPDATE));
VLOG(1) << "Updating entry : " << *entry;
VLOG(2) << "Updating entry : " << *entry;
// Start by setting the properties that determine the model_type.
entry->Put(SPECIFICS, entry->Get(SERVER_SPECIFICS));
entry->Put(IS_DIR, entry->Get(SERVER_IS_DIR));
......
......@@ -235,14 +235,14 @@ bool AutofillModelAssociator::TraverseAndAssociateAllSyncNodes(
bool autofill_profile_not_migrated = HasNotMigratedYet(write_trans);
if (VLOG_IS_ON(1) && autofill_profile_not_migrated) {
VLOG(1) << "[AUTOFILL MIGRATION]"
if (VLOG_IS_ON(2) && autofill_profile_not_migrated) {
VLOG(2) << "[AUTOFILL MIGRATION]"
<< "Printing profiles from web db";
for (std::vector<AutoFillProfile*>::const_iterator ix =
all_profiles_from_db.begin(); ix != all_profiles_from_db.end(); ++ix) {
AutoFillProfile* p = *ix;
VLOG(1) << "[AUTOFILL MIGRATION] "
VLOG(2) << "[AUTOFILL MIGRATION] "
<< p->GetFieldText(AutoFillType(NAME_FIRST))
<< p->GetFieldText(AutoFillType(NAME_LAST));
}
......@@ -268,7 +268,7 @@ bool AutofillModelAssociator::TraverseAndAssociateAllSyncNodes(
} else if (autofill.has_profile()) {
// Ignore autofill profiles if we are not upgrading.
if (autofill_profile_not_migrated) {
VLOG(1) << "[AUTOFILL MIGRATION] Looking for "
VLOG(2) << "[AUTOFILL MIGRATION] Looking for "
<< autofill.profile().name_first()
<< autofill.profile().name_last();
AddNativeProfileIfNeeded(
......
......@@ -46,14 +46,14 @@ bool AutofillProfileModelAssociator::TraverseAndAssociateChromeAutoFillProfiles(
std::vector<AutoFillProfile*>* new_profiles,
std::vector<std::string>* profiles_to_delete) {
if (VLOG_IS_ON(1)) {
VLOG(1) << "[AUTOFILL MIGRATION]"
if (VLOG_IS_ON(2)) {
VLOG(2) << "[AUTOFILL MIGRATION]"
<< "Printing profiles from web db";
for (std::vector<AutoFillProfile*>::const_iterator ix =
all_profiles_from_db.begin(); ix != all_profiles_from_db.end(); ++ix) {
AutoFillProfile* p = *ix;
VLOG(1) << "[AUTOFILL MIGRATION] "
VLOG(2) << "[AUTOFILL MIGRATION] "
<< p->GetFieldText(AutoFillType(NAME_FIRST))
<< p->GetFieldText(AutoFillType(NAME_LAST))
<< p->guid();
......@@ -77,7 +77,7 @@ bool AutofillProfileModelAssociator::TraverseAndAssociateChromeAutoFillProfiles(
// the same profile duplicated.
current_profiles->find(guid) == current_profiles->end()) {
VLOG(1) << "[AUTOFILL MIGRATION]"
VLOG(2) << "[AUTOFILL MIGRATION]"
<< " Found in sync db: "
<< (*ix)->GetFieldText(AutoFillType(NAME_FIRST))
<< (*ix)->GetFieldText(AutoFillType(NAME_LAST))
......@@ -304,7 +304,7 @@ bool AutofillProfileModelAssociator::MakeNewAutofillProfileSyncNodeIfNeeded(
std::string guid = autofill_specifics.guid();
Associate(&guid, sync_node_id);
current_profiles->insert(autofill_specifics.guid());
VLOG(1) << "[AUTOFILL MIGRATION]"
VLOG(2) << "[AUTOFILL MIGRATION]"
<< "Found in sync db but with a different guid: "
<< UTF16ToUTF8(profile.GetFieldText(AutoFillType(NAME_FIRST)))
<< UTF16ToUTF8(profile.GetFieldText(AutoFillType(NAME_LAST)))
......@@ -319,7 +319,7 @@ bool AutofillProfileModelAssociator::MakeNewAutofillProfileSyncNodeIfNeeded(
return false;
}
node.SetTitle(UTF8ToWide(profile.guid()));
VLOG(1) << "[AUTOFILL MIGRATION]"
VLOG(2) << "[AUTOFILL MIGRATION]"
<< "NOT Found in sync db "
<< UTF16ToUTF8(profile.GetFieldText(AutoFillType(NAME_FIRST)))
<< UTF16ToUTF8(profile.GetFieldText(AutoFillType(NAME_LAST)))
......@@ -367,7 +367,7 @@ void AutofillProfileModelAssociator::AddNativeProfileIfNeeded(
const sync_api::ReadNode& node) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
VLOG(1) << "[AUTOFILL MIGRATION] "
VLOG(2) << "[AUTOFILL MIGRATION] "
<< "Trying to lookup "
<< profile.name_first()
<< " "
......@@ -383,10 +383,10 @@ void AutofillProfileModelAssociator::AddNativeProfileIfNeeded(
AutoFillProfile* p = new AutoFillProfile(profile.guid());
OverwriteProfileWithServerData(p, profile);
bundle->new_profiles.push_back(p);
VLOG(1) << "[AUTOFILL MIGRATION] "
VLOG(2) << "[AUTOFILL MIGRATION] "
<< " Did not find one so creating it on web db";
} else {
VLOG(1) << "[AUTOFILL MIGRATION] "
VLOG(2) << "[AUTOFILL MIGRATION] "
<< " Found it on web db. Moving on ";
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment