From c8fa8315d8338b87d16be74777f67dae6c310b02 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Thu, 2 May 2013 11:12:47 +0200 Subject: [PATCH] pass '__file__' to logger_init whereever it is used --- add_liveboot_request.py | 2 +- cleanup_liveboot.py | 2 +- db_add.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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() -- 2.39.5