Commit 3c87ce67 authored by kinuko@chromium.org's avatar kinuko@chromium.org

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
parent 7c763317
......@@ -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;
......
......@@ -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;
......
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