An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit a833b716 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

logging: log when a request is made

parent be797a4e
......@@ -12,6 +12,7 @@ homepage = "https://gitlab.kitware.com/utils/rust-gitlab"
[dependencies]
#ease = "~0.5"
hyper = "~0.9"
log = "*"
serde_json = "~0.7"
url = "~1.1"
......
......@@ -96,6 +96,8 @@ impl Gitlab {
let full_url = try!(self.base_url.join(url));
let mut req = Request::new(full_url);
debug!(target: "gitlab", "api call {}", url);
req.header(GitlabPrivateToken(self.token.clone()));
Ok(req)
......
......@@ -5,6 +5,9 @@
#[macro_use]
extern crate hyper;
#[macro_use]
extern crate log;
mod error;
mod gitlab;
......
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