From: Frank Brehm Date: Fri, 27 Jan 2017 12:45:32 +0000 (+0100) Subject: Changes on error output X-Git-Tag: 0.8.4~45 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=1811c3c3758f423110e478a751b7d24d056a45aa;p=pixelpark%2Fpuppetmaster-webhooks.git Changes on error output --- diff --git a/lib/webhooks/__init__.py b/lib/webhooks/__init__.py index 9dca167..5e1c2e7 100644 --- a/lib/webhooks/__init__.py +++ b/lib/webhooks/__init__.py @@ -1,6 +1,6 @@ #!/bin/env python3 # -*- coding: utf-8 -*- -__version__ = '0.3.2' +__version__ = '0.3.3' # vim: ts=4 et list diff --git a/lib/webhooks/deploy.py b/lib/webhooks/deploy.py index 18b6012..7c0c8de 100644 --- a/lib/webhooks/deploy.py +++ b/lib/webhooks/deploy.py @@ -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()