]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Adding debug output
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 20 Oct 2017 14:30:46 +0000 (16:30 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 20 Oct 2017 14:30:46 +0000 (16:30 +0200)
lib/webhooks/__init__.py
lib/webhooks/base_app.py

index f18c805ccc35de39d26bef3e80d56077de231a20..4a065910c2ede021e1db713316f6dee761e0f24c 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/env python3
 # -*- coding: utf-8 -*-
 
-__version__ = '0.6.2'
+__version__ = '0.6.3'
 
 # vim: ts=4 et list
index fadc306f44dd91e858653aca05c5f63000788378..92d9581efde87ec0ffe06ecee72dcdb02a03298d 100644 (file)
@@ -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()