aboutsummaryrefslogtreecommitdiff
path: root/src/provider
diff options
context:
space:
mode:
Diffstat (limited to 'src/provider')
-rw-r--r--src/provider/gandi.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/provider/gandi.rs b/src/provider/gandi.rs
index 85bf570..eeff641 100644
--- a/src/provider/gandi.rs
+++ b/src/provider/gandi.rs
@@ -4,7 +4,7 @@ use anyhow::{anyhow, Result};
use async_trait::async_trait;
use reqwest::header;
use serde::Serialize;
-use tracing::{info, warn};
+use tracing::*;
use crate::provider::DnsProvider;
use crate::Opt;
@@ -34,11 +34,15 @@ impl GandiProvider {
}
async fn put_rrset(&self, url: &str, rrset: &GandiRrset) -> Result<()> {
- info!("PUT {} with {:?}", url, rrset);
+ debug!(url = url, body = format!("{:?}", rrset), "PUT");
let http = self.client.put(url).json(rrset).send().await?;
if !http.status().is_success() {
- warn!("PUT {} returned {}", url, http.status());
+ warn!(
+ url = url,
+ http_status = http.status().to_string(),
+ "PUT returned error"
+ );
}
http.error_for_status()?;