Skip to content

Commit

Permalink
Remove logging function output
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySamoylov committed Sep 8, 2022
1 parent 6240a6a commit 85df7c3
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions onvif/src/soap/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ macro_rules! debug {
}
}

macro_rules! warn {
($($arg:tt)+) => {
event!(tracing::Level::WARN, $($arg)+)
};
}

#[derive(Clone)]
pub struct Client {
client: reqwest::Client,
Expand Down Expand Up @@ -141,7 +135,7 @@ enum RequestAuthType {
#[async_trait]
impl Transport for Client {
async fn request(&self, message: &str) -> Result<String, Error> {
let result = match self.config.auth_type {
match self.config.auth_type {
AuthType::Any => {
match self.request_with_digest(message).await {
Ok(success) => Ok(success),
Expand All @@ -154,14 +148,7 @@ impl Transport for Client {
}
AuthType::Digest => self.request_with_digest(message).await,
AuthType::UsernameToken => self.request_with_username_token(message).await,
};

match &result {
Ok(response) => debug!(self, "Request succeeded: {}", response),
Err(e) => warn!(self, "Request failed: {:?}", e),
}

result
}
}

Expand Down

0 comments on commit 85df7c3

Please sign in to comment.