Improve the error message printed when a WorkerService::GetStatus() call fails on...
authorDerek Murray <mrry@google.com>
Thu, 17 May 2018 16:32:02 +0000 (09:32 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 17 May 2018 16:36:25 +0000 (09:36 -0700)
PiperOrigin-RevId: 197003951

tensorflow/core/distributed_runtime/master.cc

index e60386f..4f9d84d 100644 (file)
@@ -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());