From: Mathias Klette Date: Thu, 2 May 2013 09:12:47 +0000 (+0200) Subject: pass '__file__' to logger_init whereever it is used X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=c8fa8315d8338b87d16be74777f67dae6c310b02;p=profitbricks%2Fjenkins-build-scripts.git pass '__file__' to logger_init whereever it is used --- diff --git a/add_liveboot_request.py b/add_liveboot_request.py index 896ac16..c86b144 100644 --- a/add_liveboot_request.py +++ b/add_liveboot_request.py @@ -14,7 +14,7 @@ import pwd import sys import urllib2 -logger = logger_init() +logger = logger_init(__file__) logger = logging.getLogger() diff --git a/cleanup_liveboot.py b/cleanup_liveboot.py index 928c239..b8b457f 100755 --- a/cleanup_liveboot.py +++ b/cleanup_liveboot.py @@ -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() diff --git a/db_add.py b/db_add.py index a008ad2..8c579b6 100755 --- 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()