summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-05 02:32:20 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-05 02:32:20 +0000
commit3c87ce67a3d75e184c14e1c9d3ff53b34f67659b (patch)
tree594f7f22bf697927c62386cd93fd3d213e1cc5e0
parent7c7633177c6cde13610deba2fe6075bbef0ce5b0 (diff)
downloadchromium_src-3c87ce67a3d75e184c14e1c9d3ff53b34f67659b.zip
chromium_src-3c87ce67a3d75e184c14e1c9d3ff53b34f67659b.tar.gz
chromium_src-3c87ce67a3d75e184c14e1c9d3ff53b34f67659b.tar.bz2
Add more debug logging in SyncFileSystem services
BUG=none TEST=none Review URL: https://codereview.chromium.org/11418309 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171130 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/sync_file_system/drive_file_sync_service.cc12
-rw-r--r--chrome/browser/sync_file_system/sync_file_system_service.cc6
2 files changed, 14 insertions, 4 deletions
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 813b83bb1..2b188c0 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_;
@@ -1418,6 +1422,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,
@@ -1438,6 +1445,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;
diff --git a/chrome/browser/sync_file_system/sync_file_system_service.cc b/chrome/browser/sync_file_system/sync_file_system_service.cc
index 9634447..69fa39c 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service.cc
+++ b/chrome/browser/sync_file_system/sync_file_system_service.cc
@@ -376,8 +376,9 @@ void SyncFileSystemService::DidProcessRemoteChange(
fileapi::SyncStatusCode status,
const FileSystemURL& url,
fileapi::SyncOperationType type) {
- DVLOG(1) << "DidProcessRemoteChange: "
+ DVLOG(1) << "DidProcessRemoteChange:"
<< " status=" << status
+ << " (" << SyncStatusCodeToString(status) << ")"
<< " url=" << url.DebugString()
<< " operation_type=" << type;
DCHECK(remote_sync_running_);
@@ -413,8 +414,9 @@ void SyncFileSystemService::DidProcessRemoteChange(
void SyncFileSystemService::DidProcessLocalChange(
fileapi::SyncStatusCode status, const FileSystemURL& url) {
- DVLOG(1) << "DidProcessLocalChange: "
+ DVLOG(1) << "DidProcessLocalChange:"
<< " status=" << status
+ << " (" << SyncStatusCodeToString(status) << ")"
<< " url=" << url.DebugString();
DCHECK(local_sync_running_);
local_sync_running_ = false;