]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
always use logger_init() from common_code
authorHolger Levsen <holger@layer-acht.org>
Fri, 28 Sep 2012 16:57:58 +0000 (18:57 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 28 Sep 2012 16:57:58 +0000 (18:57 +0200)
add_liveboot_request.py
debian_build.py

index dfa289330c66472f85cc0b1ef553537ddded8a83..3bba3ab624141f6bbc69b813033a4fc6005e50a8 100644 (file)
@@ -8,13 +8,12 @@
 __author__ = "Fabian Holler <fabian.holler@profitbricks.com>"
 
 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:])
index 79147f5560c1a104c6bea5d69272f3a3716f23ec..ece00ad0b4dabf4620fb6872cbb56dd0fde5a75d 100755 (executable)
@@ -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&'