aboutsummaryrefslogtreecommitdiffstats
path: root/src/github.rs
diff options
context:
space:
mode:
authorTeddy Wing2017-11-13 23:06:03 +0100
committerTeddy Wing2017-11-13 23:06:03 +0100
commit00fc313eb14248401bc3b1863334f4b0c268007d (patch)
treee3e65a9f4f10bcbe1dc8ec2d76a1b32af77a83ee /src/github.rs
parente93c2d1736bd2e08f9800f6d12bbe034194a38ad (diff)
downloadkipper-00fc313eb14248401bc3b1863334f4b0c268007d.tar.bz2
Log response body of HTTP calls
Log the HTTP response bodies to see if there's something we can gather from our connected services' API responses.
Diffstat (limited to 'src/github.rs')
-rw-r--r--src/github.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/github.rs b/src/github.rs
index 4267468..9b95192 100644
--- a/src/github.rs
+++ b/src/github.rs
@@ -69,7 +69,7 @@ pub fn update_commit_status(
params.insert("description", d);
}
- client.post(
+ let mut response = client.post(
&format!(
"{}/repos/{}/{}/statuses/{}",
API_URL,
@@ -93,6 +93,8 @@ pub fn update_commit_status(
.json(&params)
.send()?;
+ debug!("{}", response.text()?);
+
Ok(())
}