Commit 516f342e authored by Ben Boeckel's avatar Ben Boeckel
Browse files

gitlab: log the JSON response from gitlab

This makes it much easier to figure out what gitlab is throwing at us if
we fail to deserialize something.
parent af9ba32b
......@@ -442,6 +442,10 @@ impl Gitlab {
Ok(rsp) => {
let v = try!(rsp.from_json().map_err(Error::Ease));
debug!(target: "gitlab",
"received data: {}",
v);
Ok(try!(serde_json::from_value::<T>(v)))
},
Err(err) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment