From e26ad3f98b71a1bed5a300e10540d42154c9627b Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 25 Jan 2017 11:09:11 +0100 Subject: [PATCH] Fixing lib/webhooks/deploy.py --- lib/webhooks/deploy.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/webhooks/deploy.py b/lib/webhooks/deploy.py index 695b930..4bb9bfd 100644 --- a/lib/webhooks/deploy.py +++ b/lib/webhooks/deploy.py @@ -183,11 +183,12 @@ class WebhookDeployApp(object): 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) # ============================================================================= -- 2.39.5