]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Changes on error output
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 27 Jan 2017 12:45:32 +0000 (13:45 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 27 Jan 2017 12:45:32 +0000 (13:45 +0100)
lib/webhooks/__init__.py
lib/webhooks/deploy.py

index 9dca16769f6fb1bd18b629c227a656b81adae7fd..5e1c2e75bb591d36c06a4b8edde4ac8911386c42 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/env python3
 # -*- coding: utf-8 -*-
 
-__version__ = '0.3.2'
+__version__ = '0.3.3'
 
 # vim: ts=4 et list
index 18b6012512af04c637ad5a5d55f156e919ae22e9..7c0c8de923f1e1dd96f7f69a259fdd68ae55691f 100644 (file)
@@ -454,7 +454,8 @@ class WebhookDeployApp(object):
         self.print_out("Content-Type: text/plain;charset=utf-8\n")
         self.print_out("Python CGI läuft.\n")
 
-        LOG.debug("Base directory: {!r}".format(self.base_dir))
+        if self.verbose > 1:
+            LOG.debug("Base directory: {!r}".format(self.base_dir))
 
         self.data = sys.stdin.read()
         try:
@@ -466,7 +467,8 @@ class WebhookDeployApp(object):
             self.error_data.append(msg)
         else:
 
-            LOG.debug("Got JSON data:\n{}".format(pp(self.json_data)))
+            if self.verbose > 1:
+                LOG.debug("Got JSON data:\n{}".format(pp(self.json_data)))
 
             try:
                 self.perform()