]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Fixing lib/webhooks/deploy.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 25 Jan 2017 10:05:47 +0000 (11:05 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 25 Jan 2017 10:05:47 +0000 (11:05 +0100)
lib/webhooks/deploy.py

index ca61b462f5f7d6c8875ba0d94da6f1a79eaf9764..695b9309ebcbaabbbd78085958d04abd4ded0574 100644 (file)
@@ -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: