Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Unified Diff: blimp/client/session/blimp_client_session.cc

Issue 1979273003: Added logs when contacting Blimp assigner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/session/blimp_client_session.cc
diff --git a/blimp/client/session/blimp_client_session.cc b/blimp/client/session/blimp_client_session.cc
index 760842abc72bb5cd32e63d9b1f4782aa071cb4d0..e4be5dd89b5b5a8c4c2acc45252172e7530ec4b1 100644
--- a/blimp/client/session/blimp_client_session.cc
+++ b/blimp/client/session/blimp_client_session.cc
@@ -191,6 +191,7 @@ BlimpClientSession::~BlimpClientSession() {
}
void BlimpClientSession::Connect(const std::string& client_auth_token) {
+ VLOG(1) << "Trying to get assignment.";
assignment_source_->GetAssignment(
client_auth_token, base::Bind(&BlimpClientSession::ConnectWithAssignment,
weak_factory_.GetWeakPtr()));
@@ -201,10 +202,12 @@ void BlimpClientSession::ConnectWithAssignment(AssignmentSource::Result result,
OnAssignmentConnectionAttempted(result, assignment);
if (result != AssignmentSource::Result::RESULT_OK) {
- VLOG(1) << "Assignment request failed: " << result;
+ LOG(FATAL) << "Assignment failed, reason: " << result;
return;
}
+ VLOG(1) << "Assignment succeeded";
Kevin M 2016/05/16 17:56:32 Add detail for the fields of |assignment|?
shaktisahu 2016/05/16 18:10:29 We are logging that in the next function (ClientNe
+
io_thread_.task_runner()->PostTask(
FROM_HERE,
base::Bind(&ClientNetworkComponents::ConnectWithAssignment,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698