Skip to content

Commit

Permalink
Merge pull request #411 from amazonlinux/t-b-s-trace
Browse files Browse the repository at this point in the history
thar-be-settings: Add trace debugging to client module
  • Loading branch information
tjkirch authored Oct 14, 2019
2 parents 3e35b01 + a6afa38 commit 7d11c2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workspaces/api/thar-be-settings/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ where
}

let method = "GET";
trace!("{}ing from {}", method, uri);
let (code, response_body) = apiclient::raw_request(socket_path, &uri, method, None)
.context(error::APIRequest { method, uri: &uri })?;

Expand All @@ -39,6 +40,7 @@ where
}
.fail();
}
trace!("JSON response: {}", response_body);

serde_json::from_str(&response_body).context(error::ResponseJson { method, uri })
}

0 comments on commit 7d11c2a

Please sign in to comment.