]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Fixing lib/webhooks/deploy.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 25 Jan 2017 10:09:11 +0000 (11:09 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 25 Jan 2017 10:09:11 +0000 (11:09 +0100)
lib/webhooks/deploy.py

index 695b9309ebcbaabbbd78085958d04abd4ded0574..4bb9bfd544df0f458bf15cb522e64e35ec6e3499 100644 (file)
@@ -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)
 
 # =============================================================================