Skip to content

Commit

Permalink
Improve logging in server_connection_manager.cc
Browse files Browse the repository at this point in the history
Convert enum to string before logging.

BUG=
TEST=


Review URL: https://chromiumcodereview.appspot.com/10698075

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145249 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
akalin@chromium.org committed Jul 3, 2012
1 parent 3cbe081 commit 76aa18c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sync/engine/net/server_connection_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ bool FillMessageWithShareDetails(sync_pb::ClientToServerMessage* csm,
std::ostream& operator << (std::ostream& s, const struct HttpResponse& hr) {
s << " Response Code (bogus on error): " << hr.response_code;
s << " Content-Length (bogus on error): " << hr.content_length;
s << " Server Status: " << hr.server_status;
s << " Server Status: "
<< HttpResponse::GetServerConnectionCodeString(hr.server_status);
return s;
}

Expand Down

0 comments on commit 76aa18c

Please sign in to comment.