From ab80c81ffa9814612a69eccc77ec1233ac1045c0 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 12 Oct 2012 18:22:54 +0200 Subject: [PATCH] remove debugging code again --- db_add.py | 7 ------- debian_build.py | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/db_add.py b/db_add.py index 7e7738c..a008ad2 100755 --- a/db_add.py +++ b/db_add.py @@ -30,24 +30,18 @@ def db_add_job(con, name): return cur.fetchone()[0] def harmonize_timeformat(time): - logger.debug('1 time = %s' % time) if time != 'NULL': try: if time.isdigit(): - logger.debug('2 time = %s' % time) time = "to_timestamp('%s')" % time - logger.debug('3 time = %s' % time) except: time = "'%s'" % time - logger.debug('4 time = %s' % time) return time def db_add_build(con, db_id, number, start, end, status): cur = con.cursor() cur.execute("SAVEPOINT a") - logger.debug('start = %s' % start) start = harmonize_timeformat(start) - logger.debug('harmonized_start = %s' % start) end = harmonize_timeformat(end) try: cur.execute("INSERT INTO jenkins_build(jenkins_job_id, jenkins_build_number, build_start, build_end, status) VALUES(%s, %s, %s, %s, '%s') RETURNING id" % (db_id, number, start, end, status)) @@ -60,7 +54,6 @@ def db_add_build(con, db_id, number, start, end, status): def db_update_build(con, db_id, end, status): cur = con.cursor() cur.execute("SAVEPOINT a") - logger.debug('end = %s' % end) end = harmonize_timeformat(end) logger.debug('harmonized_end = %s' % end) try: diff --git a/debian_build.py b/debian_build.py index ad0d1ca..ece00ad 100755 --- a/debian_build.py +++ b/debian_build.py @@ -578,7 +578,7 @@ if __name__ == '__main__': cmd = ['figlet-figlet', '-t', 'CIDB problem:'] subprocess.check_call(cmd) logger.error("package instance not added to DB") - #exit_error() + exit_error() if len(package_instances) > 0: try: add_liveboot_request(package_instances) -- 2.39.5