add trace to sending requests

master
Ondřej Hruška 3 years ago
parent 54a0e55964
commit a0ebb46542
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 1
      src/macros.rs

@ -4,6 +4,7 @@ macro_rules! methods {
pub async fn $method<T: for<'de> serde::Deserialize<'de>>(&self, url: String)
-> Result<T>
{
log::trace!("{} {}", stringify!($method), url);
let response = self.send(
self.http_client.$method(&url)
).await?;

Loading…
Cancel
Save