From 2cc51d5362fb86f00d02a7f06592d85cb875f03a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 12 Oct 2012 12:58:57 +0200 Subject: [PATCH] remove debugging code --- db_add.py | 4 ++-- liveboot2db.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/db_add.py b/db_add.py index 2244785..11e5d23 100755 --- a/db_add.py +++ b/db_add.py @@ -35,7 +35,7 @@ def db_add_build(con, db_id, number, start, end, status): 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)) except psycopg2.DatabaseError as e: cur.execute("ROLLBACK TO a") # have to rollback after failed command - logger.info("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)) + logger.debug("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)) return cur.fetchone()[0] def db_update_build(con, db_id, end, status): @@ -45,7 +45,7 @@ def db_update_build(con, db_id, end, status): cur.execute("UPDATE jenkins_build SET build_end = '%s', status = '%s' WHERE id = %s RETURNING id" % (db_id, end, status)) except psycopg2.DatabaseError as e: cur.execute("ROLLBACK TO a") # have to rollback after failed command - logger.info("UPDATE jenkins_build SET build_end = '%s', status = '%s' WHERE id = %s RETURNING id" % (db_id, end, status)) + logger.debug("UPDATE jenkins_build SET build_end = '%s', status = '%s' WHERE id = %s RETURNING id" % (db_id, end, status)) return cur.fetchone()[0] def db_add_origin(con, origin): diff --git a/liveboot2db.py b/liveboot2db.py index 936b94b..cc5e93e 100755 --- a/liveboot2db.py +++ b/liveboot2db.py @@ -7,7 +7,6 @@ from db_add import * if __name__ == '__main__': - print len(sys.argv) if len(sys.argv) != 5 and len(sys.argv) !=6: # if the build was just started: print("usage: %s $job_name $build_number $liveboot_request_id $start_time") -- 2.39.5