From 1811c3c3758f423110e478a751b7d24d056a45aa Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 27 Jan 2017 13:45:32 +0100 Subject: [PATCH] Changes on error output --- lib/webhooks/__init__.py | 2 +- lib/webhooks/deploy.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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() -- 2.39.5