Index: remoting/host/gaia_oauth_client.cc |
diff --git a/remoting/host/gaia_oauth_client.cc b/remoting/host/gaia_oauth_client.cc |
index 0412ae05106f9ad39052850288d7b9122edf0b1b..22d839b53516b9d3809658ea3c330458c06cd804 100644 |
--- a/remoting/host/gaia_oauth_client.cc |
+++ b/remoting/host/gaia_oauth_client.cc |
@@ -135,6 +135,7 @@ void GaiaOAuthClient::Core::HandleResponse( |
// RC_BAD_REQUEST means the arguments are invalid. No point retrying. We are |
// done here. |
if (source->GetResponseCode() == net::HTTP_BAD_REQUEST) { |
+ VLOG(1) << "Gaia response: response code=net::HTTP_BAD_REQUEST."; |
Jamie
2012/04/12 18:20:20
I think I would lean towards using LOG(ERROR) in t
|
delegate_->OnOAuthError(); |
return; |
} |
@@ -153,6 +154,11 @@ void GaiaOAuthClient::Core::HandleResponse( |
response_dict->GetString(kRefreshTokenValue, &refresh_token); |
response_dict->GetInteger(kExpiresInValue, &expires_in_seconds); |
} |
+ VLOG(1) << "Gaia response: acess_token='" << access_token |
+ << "', refresh_token='" << refresh_token |
+ << "', expires in " << expires_in_seconds << " second(s)"; |
+ } else { |
+ VLOG(1) << "Gaia response: response code=" << source->GetResponseCode(); |
Jamie
2012/04/12 18:20:20
Also LOG(ERROR), just for the "else" clause.
|
} |
if (access_token.empty()) { |
// If we don't have an access token yet and the the error was not |