From 49bae30f28ff9cce7abac0aa84ed1151dcc11037 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 28 Sep 2012 18:57:58 +0200 Subject: [PATCH] always use logger_init() from common_code --- add_liveboot_request.py | 6 ++---- debian_build.py | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/add_liveboot_request.py b/add_liveboot_request.py index dfa2893..3bba3ab 100644 --- a/add_liveboot_request.py +++ b/add_liveboot_request.py @@ -8,13 +8,12 @@ __author__ = "Fabian Holler " from cidb import * +from common_code import * import sys import psycopg2 -import logging import pwd - -logger = logging.getLogger() +logger = logger_init() def get_default_pkg_list_id(con): @@ -184,5 +183,4 @@ def add_liveboot_request(deb_pkg_instance_ids): if __name__ == "__main__": - logging.basicConfig(level=logging.DEBUG) add_liveboot_request(sys.argv[1:]) diff --git a/debian_build.py b/debian_build.py index 79147f5..ece00ad 100755 --- a/debian_build.py +++ b/debian_build.py @@ -10,7 +10,6 @@ import errno import atexit import shutil import fnmatch -import logging import optparse import datetime import platform @@ -31,7 +30,7 @@ from lib import git_buildpackage from multiprocessing import cpu_count from ConfigParser import SafeConfigParser - +# from common_code logger = logger_init() JOB_URL = 'http://jenkins:80/job/%(flavour)s/buildWithParameters?token=BuildIt&' -- 2.39.5