From: Frank Brehm Date: Wed, 25 Jan 2017 10:09:11 +0000 (+0100) Subject: Fixing lib/webhooks/deploy.py X-Git-Tag: 0.8.4~56 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=e26ad3f98b71a1bed5a300e10540d42154c9627b;p=pixelpark%2Fpuppetmaster-webhooks.git Fixing lib/webhooks/deploy.py --- 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) # =============================================================================