From: Frank Brehm Date: Wed, 25 Jan 2017 10:05:47 +0000 (+0100) Subject: Fixing lib/webhooks/deploy.py X-Git-Tag: 0.8.4~57 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=1fbdebf2518ee2faf6927468d6734fc9b84476f6;p=pixelpark%2Fpuppetmaster-webhooks.git Fixing lib/webhooks/deploy.py --- diff --git a/lib/webhooks/deploy.py b/lib/webhooks/deploy.py index ca61b46..695b930 100644 --- a/lib/webhooks/deploy.py +++ b/lib/webhooks/deploy.py @@ -22,7 +22,7 @@ import webhooks from webhooks.common import pp __version__ = webhooks.__version__ -log = logging.getLogger(__name__) +LOG = logging.getLogger(__name__) # ============================================================================= class WebhookDeployApp(object): @@ -99,7 +99,7 @@ class WebhookDeployApp(object): if v >= 0: self._verbose = v else: - log.warn("Wrong verbose level %r, must be >= 0", value) + LOG.warn("Wrong verbose level %r, must be >= 0", value) # ----------------------------------------------------------- @property @@ -176,8 +176,8 @@ class WebhookDeployApp(object): print() print("Python CGI läuft") - log.info("Starting ...") - log.debug("Base directory: {!r}".format(self.base_dir)) + LOG.info("Starting ...") + LOG.debug("Base directory: {!r}".format(self.base_dir)) self.data = sys.stdin.read() try: