]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
common_code: use __file__ not __name__
authorroot sagunt <root@sagunt.profitbricks.localdomain>
Thu, 6 Jun 2013 10:53:37 +0000 (10:53 +0000)
committerroot sagunt <root@sagunt.profitbricks.localdomain>
Thu, 6 Jun 2013 10:53:37 +0000 (10:53 +0000)
common_code.py

index 6748f56dd03373c6d41e2f43ab9cb01cc0624f5f..2cb344cf6e1cca6463dc7116a7db8003a074bf22 100755 (executable)
@@ -22,7 +22,7 @@ def logger_init(
         ):
 
     if log_name == None:
-        log_name = re.match('^(.*/jenkins_build_script/)(.*)',__name__).groups()[1]
+        log_name = re.match('^(.*/jenkins_build_script/)(.*)',__file__).groups()[1]
         
     if log_level == None: 
         try: