From 00fc313eb14248401bc3b1863334f4b0c268007d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 13 Nov 2017 23:06:03 +0100 Subject: 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. --- src/github.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/github.rs') 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(()) } -- cgit v1.2.3