if 'REQUEST_METHOD' in os.environ:
+ sys.stderr.write("Trying to open logfile {!r} ...\n".format(self.logfile))
# we are in a CGI environment
if os.path.isdir(self.log_directory) and os.access(self.log_directory, os.W_OK):
lh_file = logging.FileHandler(
def __call__(self):
"""Helper method to make the resulting object callable."""
+ print("Content-Type: text/plain;charset=utf-8")
+ print()
+ print("Python CGI läuft")
+
log.info("Starting ...")
log.debug("Base directory: {!r}".format(self.base_dir))