From bf4d6741dc80481ab5bad1eb5a218223f7b911e3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 15 Oct 2012 12:49:07 +0200 Subject: [PATCH] more logging --- add_liveboot_request.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/add_liveboot_request.py b/add_liveboot_request.py index 2c1a721..556f8ac 100644 --- a/add_liveboot_request.py +++ b/add_liveboot_request.py @@ -131,6 +131,7 @@ def trigger_jenkins_build(request_id): "=BuildIt&REQUEST_ID=" + str(request_id) logger.info("Jenkins build trigger url: %s" % url) urllib2.urlopen(url).read() + return url def add_liveboot_request(deb_pkg_instance_ids): @@ -190,7 +191,8 @@ def add_liveboot_request(deb_pkg_instance_ids): request_id = insert_liveboot_request(con, jenkins_uid, def_pkg_list_id) con.commit() logger.info("New liveboot request created sucessfully") - trigger_jenkins_build(request_id) + url = trigger_jenkins_build(request_id) + logger.info("New liveboot triggered via %s" % url) else: logger.info("Package isn't in the default package_list, no liveboot" -- 2.39.5