aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2017-11-13 23:07:28 +0100
committerTeddy Wing2017-11-13 23:08:45 +0100
commitdf9b4dbd7aa8401b0e488c99c49205bc39dc5a80 (patch)
treecebaa759d58e68a0d35bf764418dd899f43c0ebb /src
parent00fc313eb14248401bc3b1863334f4b0c268007d (diff)
downloadkipper-df9b4dbd7aa8401b0e488c99c49205bc39dc5a80.tar.bz2
Focus HTTP response logging on `update_commit_status()`
Comment out HTTP response logging from Jenkins because those may be coming back all right. Actually I might want to leave the log from `request_job()` now that I think about it. Add some additional logging on `update_commit_status()` to hopefully try to see why it's not getting called all the time.
Diffstat (limited to 'src')
-rw-r--r--src/github.rs3
-rw-r--r--src/jenkins.rs4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/github.rs b/src/github.rs
index 9b95192..44a4419 100644
--- a/src/github.rs
+++ b/src/github.rs
@@ -93,6 +93,9 @@ pub fn update_commit_status(
.json(&params)
.send()?;
+ debug!("{}", response.url());
+ debug!("{}", response.status());
+ debug!("{}", response.headers());
debug!("{}", response.text()?);
Ok(())
diff --git a/src/jenkins.rs b/src/jenkins.rs
index c954846..61d3bf1 100644
--- a/src/jenkins.rs
+++ b/src/jenkins.rs
@@ -231,7 +231,7 @@ pub fn get_jobs(
let body = response.text()?;
- debug!("{}", body);
+ // debug!("{}", body);
let jobs = json::parse(body.as_ref())?;
@@ -257,7 +257,7 @@ pub fn request_job(
let body = response.text()?;
- debug!("{}", body);
+ // debug!("{}", body);
let job = Job::new(body)?;