try:
self.json_data = json.loads(self.data)
except Exception as e:
- LOG.error("Got a {n} reading input data: {e}".format(n=e.__class__.__name__, e=e))
- LOG.error("Input data:\n{}".format(self.data))
+ LOG.error("Got a {n} reading input data as JSON: {e}".format(
+ n=e.__class__.__name__, e=e))
+ LOG.error("Input data: {!r}".format(self.data))
sys.exit(0)
- LOG.debug("Got data:\n{}".format(pp(self.json_data)))
+ LOG.debug("Got JSON data:\n{}".format(pp(self.json_data)))
sys.exit(0)
# =============================================================================