Commit b10f0ff3 by Calen Pennington

Correctly use the Logger.exception method to capture exception backtraces if…

Correctly use the Logger.exception method to capture exception backtraces if datadog timing logging fails
parent 3298f311
......@@ -79,8 +79,8 @@ class DatadogFormatter(Formatter):
points=playbook_timestamp.duration.total_seconds(),
tags=["playbook:{0}".format(self.clean_tag_value(playbook_name))]
)
except Exception as ex:
LOGGER.error(ex.message)
except Exception:
LOGGER.exception("Failed to log timing data to datadog")
class JsonFormatter(Formatter):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment