From 4cd15c7046c03dd9b5751e6dc4a7d06a9d247757 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 20 Oct 2017 16:30:46 +0200 Subject: [PATCH] Adding debug output --- lib/webhooks/__init__.py | 2 +- lib/webhooks/base_app.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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() -- 2.39.5