diff options
author | Teddy Wing | 2017-11-13 23:06:03 +0100 |
---|---|---|
committer | Teddy Wing | 2017-11-13 23:06:03 +0100 |
commit | 00fc313eb14248401bc3b1863334f4b0c268007d (patch) | |
tree | e3e65a9f4f10bcbe1dc8ec2d76a1b32af77a83ee /src/github.rs | |
parent | e93c2d1736bd2e08f9800f6d12bbe034194a38ad (diff) | |
download | kipper-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.rs | 4 |
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(¶ms) .send()?; + debug!("{}", response.text()?); + Ok(()) } |