Skip to content

Commit

Permalink
Adjust the placement & frequency of the "{method} {url}" log message
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Nov 4, 2023
1 parent dc574d3 commit f69c364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ impl GitHub {
url: Url,
payload: Option<&T>,
) -> Result<Response, RequestError> {
log::trace!("{} {}", method, url);
if MUTATING_METHODS.contains(&method) {
if let Some(lastmut) = self.last_mutation.get() {
let delay = MUTATION_DELAY
Expand All @@ -94,6 +93,7 @@ impl GitHub {
let req = req
.try_clone()
.expect("non-streaming requests should be clonable");
log::trace!("{} {}", method, url);
let resp = req.send().await;
let desc = match resp {
Ok(ref r) => format!("Server returned {} response", r.status()),
Expand Down

0 comments on commit f69c364

Please sign in to comment.