From 6ef6c8d5e5c1661295d9e64c1ecf16d688ebb256 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 8 May 2020 11:44:28 -0700 Subject: [PATCH] Change the logging from warning to error when there is an exception at session close. PiperOrigin-RevId: 310598070 Change-Id: Id50e116527814ed945aaeb575d811d362afe502a --- tensorflow/python/training/monitored_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/python/training/monitored_session.py b/tensorflow/python/training/monitored_session.py index d77278e98f4..ab63f4237da 100644 --- a/tensorflow/python/training/monitored_session.py +++ b/tensorflow/python/training/monitored_session.py @@ -1189,7 +1189,7 @@ class _WrappedSession(object): try: self._sess.close() except _PREEMPTION_ERRORS as e: - logging.warning( + logging.error( 'An error occurred when attempting to close the ' 'session. This may be due to a preemption in a ' 'connected worker or parameter server. Error: %s', e)