From 295587d1819b0c8029a3db231fa09046ab75844c Mon Sep 17 00:00:00 2001 From: Derek Murray Date: Thu, 17 May 2018 09:32:02 -0700 Subject: [PATCH] Improve the error message printed when a WorkerService::GetStatus() call fails on session creation. PiperOrigin-RevId: 197003951 --- tensorflow/core/distributed_runtime/master.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tensorflow/core/distributed_runtime/master.cc b/tensorflow/core/distributed_runtime/master.cc index e60386f..4f9d84d 100644 --- a/tensorflow/core/distributed_runtime/master.cc +++ b/tensorflow/core/distributed_runtime/master.cc @@ -269,7 +269,8 @@ class DeviceFinder { mutex_lock l(mu_); seen_targets_[target_index] = true; if (!s.ok()) { - LOG(ERROR) << "Master init: " << s; + LOG(ERROR) << "CreateSession failed because worker " + << targets_[target_index] << " returned error: " << s; status_.Update(s); } else { found_.insert(found_.end(), devices->begin(), devices->end()); -- 2.7.4