aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/cc/training
diff options
context:
space:
mode:
authorGravatar Yuefeng Zhou <yuefengz@google.com>2017-04-12 11:48:26 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-04-12 13:11:57 -0700
commit59b3423ee2f7fafd59d9ee4ff2efe8f4d5441485 (patch)
tree2c4a7023d42aa0889b7f2f97d33ff507ea46f686 /tensorflow/cc/training
parent497dbbca428c3441f36a03a5306d862b10d83674 (diff)
Add an error message when queue runner threads return errors.
Change: 152974181
Diffstat (limited to 'tensorflow/cc/training')
-rw-r--r--tensorflow/cc/training/queue_runner.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/cc/training/queue_runner.cc b/tensorflow/cc/training/queue_runner.cc
index 6b61591681..51eba5d8a1 100644
--- a/tensorflow/cc/training/queue_runner.cc
+++ b/tensorflow/cc/training/queue_runner.cc
@@ -186,6 +186,8 @@ void QueueRunner::Run(Session* sess, const string& enqueue_op) {
UpdateStatus(RealRun(sess, close_op_name_));
}
} else if (!status.ok()) {
+ LOG(ERROR) << "Queue runner thread got a failure status: "
+ << status.ToString();
UpdateStatus(status);
if (coord_) {
coord_->RequestStop().IgnoreError();