Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: chrome/browser/sync_file_system/drive_file_sync_service.cc

Issue 11418309: Add more debug logging in SyncFileSystem services (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/sync_file_system_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/drive_file_sync_service.cc b/chrome/browser/sync_file_system/drive_file_sync_service.cc
index 1d776ebe9fdce969b1771b40ecbefa218ad8708e..c40defdedbb4136f4e832740fcfe636bff73e51b 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/drive_file_sync_service.cc
@@ -92,7 +92,7 @@ class DriveFileSyncService::TaskToken {
task_type_ = task_type;
description_ = description;
- DVLOG(1) << "Token updated: " << description_
+ DVLOG(2) << "Token updated: " << description_
<< " " << location_.ToString();
}
@@ -367,6 +367,9 @@ void DriveFileSyncService::ProcessRemoteChange(
DCHECK(ContainsKey(*path_to_change, path));
const RemoteChange& remote_change = (*path_to_change)[path];
+ DVLOG(1) << "ProcessRemoteChange for " << url.DebugString()
+ << " remote_change:" << remote_change.change.DebugString();
+
scoped_ptr<ProcessRemoteChangeParam> param(new ProcessRemoteChangeParam(
token.Pass(), processor, remote_change, callback));
processor->PrepareForProcessRemoteChange(
@@ -587,8 +590,9 @@ void DriveFileSyncService::NotifyTaskDone(fileapi::SyncStatusCode status,
token_ = token.Pass();
if (token_->task_type() != TASK_TYPE_NONE) {
- DVLOG(1) << "NotifyTaskDone: " << token_->description()
+ DVLOG(2) << "NotifyTaskDone: " << token_->description()
<< ": finished with status=" << status
+ << " (" << SyncStatusCodeToString(status) << ")"
<< " " << token_->location().ToString();
RemoteServiceState old_state = state_;
@@ -1417,6 +1421,9 @@ void DriveFileSyncService::FetchChangesForIncrementalSync() {
return;
}
+ DVLOG(1) << "FetchChangesForIncrementalSync (start_changestamp:"
+ << (largest_fetched_changestamp_ + 1) << ")";
+
sync_client_->ListChanges(
largest_fetched_changestamp_ + 1,
base::Bind(&DriveFileSyncService::DidFetchChangesForIncrementalSync,
@@ -1436,6 +1443,7 @@ void DriveFileSyncService::DidFetchChangesForIncrementalSync(
for (iterator itr = changes->entries().begin();
itr != changes->entries().end(); ++itr) {
const google_apis::DocumentEntry& entry = **itr;
+ DVLOG(3) << " change:" << entry.title();
GURL origin;
if (!GetOriginForEntry(entry, &origin))
continue;
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/sync_file_system_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698