diff options
author | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-25 09:36:36 +0000 |
---|---|---|
committer | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-25 09:36:36 +0000 |
commit | 56bb3cd5f5b71a9349c76d6fd66efeee79e453f2 (patch) | |
tree | bb3cf590c7419be7acd723c6f635284db20637d9 /sync | |
parent | 16b4a011f6220aa58764e6a227a14941ee0d3163 (diff) | |
download | chromium_src-56bb3cd5f5b71a9349c76d6fd66efeee79e453f2.zip chromium_src-56bb3cd5f5b71a9349c76d6fd66efeee79e453f2.tar.gz chromium_src-56bb3cd5f5b71a9349c76d6fd66efeee79e453f2.tar.bz2 |
[Sync] Add logging for network error codes
See bug.
BUG=170239
Review URL: https://chromiumcodereview.appspot.com/12047086
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync')
-rw-r--r-- | sync/internal_api/syncapi_server_connection_manager.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sync/internal_api/syncapi_server_connection_manager.cc b/sync/internal_api/syncapi_server_connection_manager.cc index 319a5aa..91900b2 100644 --- a/sync/internal_api/syncapi_server_connection_manager.cc +++ b/sync/internal_api/syncapi_server_connection_manager.cc @@ -51,9 +51,10 @@ bool SyncAPIBridgedConnection::Init(const char* path, int error_code = 0; int response_code = 0; if (!http->MakeSynchronousPost(&error_code, &response_code)) { - DVLOG(1) << "Http POST failed, error returns: " << error_code; response->server_status = error_code == net::ERR_ABORTED ? HttpResponse::CONNECTION_UNAVAILABLE : HttpResponse::IO_ERROR; + LOG_IF(WARNING, error_code != net::ERR_ABORTED) + << "Net error during post: " << error_code; return false; } |