]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
pass '__file__' to logger_init whereever it is used
authorMathias Klette <mathias.klette@profitbricks.com>
Thu, 2 May 2013 09:12:47 +0000 (11:12 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Thu, 2 May 2013 10:01:26 +0000 (12:01 +0200)
add_liveboot_request.py
cleanup_liveboot.py
db_add.py

index 896ac16496d46d07f0583567fd20c012b21558fa..c86b1443725238ab68a6c61afa4bbb1a371697e2 100644 (file)
@@ -14,7 +14,7 @@ import pwd
 import sys
 import urllib2
 
-logger = logger_init()
+logger = logger_init(__file__)
 
 
 logger = logging.getLogger()
index 928c2391a11f93f28b287fd2f90c79c19411eed8..b8b457fe362783dbfee6921f555b290175d58ae5 100755 (executable)
@@ -14,7 +14,7 @@ import psycopg2
 from common_code import *
 from cidb import *
 
-logger = logger_init()
+logger = logger_init(__file__)
 
 def liveboot_to_keep(name):
     con = db_connect()
index a008ad24ebe8dc6979766ef330994a7d8cc9031f..8c579b6c7ed68ece7e4c90771ab45bb6ff9029cd 100755 (executable)
--- a/db_add.py
+++ b/db_add.py
@@ -14,7 +14,7 @@ import psycopg2
 from common_code import *
 from cidb import *
 
-logger = logger_init()
+logger = logger_init(__file__)
 
 def db_add_job(con, name):
     cur = con.cursor()