From: Frank Brehm Date: Fri, 20 Oct 2017 14:30:46 +0000 (+0200) Subject: Adding debug output X-Git-Tag: 0.8.4~5 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=4cd15c7046c03dd9b5751e6dc4a7d06a9d247757;p=pixelpark%2Fpuppetmaster-webhooks.git Adding debug output --- diff --git a/lib/webhooks/__init__.py b/lib/webhooks/__init__.py index f18c805..4a06591 100644 --- a/lib/webhooks/__init__.py +++ b/lib/webhooks/__init__.py @@ -1,6 +1,6 @@ #!/bin/env python3 # -*- coding: utf-8 -*- -__version__ = '0.6.2' +__version__ = '0.6.3' # vim: ts=4 et list diff --git a/lib/webhooks/base_app.py b/lib/webhooks/base_app.py index fadc306..92d9581 100644 --- a/lib/webhooks/base_app.py +++ b/lib/webhooks/base_app.py @@ -114,6 +114,10 @@ class BaseHookApp(object): self.read_config() self.init_logging() + if 'REQUEST_METHOD' in os.environ: + LOG.debug("We are in a CGI: REQUEST_METHOD {!r}".format(os.environ['REQUEST_METHOD'])) + else: + LOG.debug("We are NOT in CGI.") self.search_curl_bin()