Change logging for generic Exceptions

We are proposing to change the Logging of generic exceptions at
"orchestrator.py". This will log an error message along with the
stack trace, which is helpful for trobleshooting.

Story: 2006568
Task: 36673

Change-Id: I879355a305dbce41c288e943fa2c815ee3758c4c
Signed-off-by: Rafael Weingärtner <rafael@apache.org>
This commit is contained in:
Rafael Weingärtner 2019-09-17 22:55:59 -03:00
parent 236487e3c3
commit 78bcc65227

View File

@ -281,7 +281,7 @@ class Worker(BaseWorker):
metric=metric, ts=timestamp))
return metric, None
except Exception as e:
LOG.warning(
LOG.exception(
self._log_prefix + 'Error while collecting'
' metric {metric} at timestamp {ts}: {e}. Exiting.'.format(
metric=metric, ts=timestamp, e=e))