diff options
author | Alex Auvolat <alex@adnab.me> | 2022-12-11 16:29:06 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-12-11 16:29:06 +0100 |
commit | b26d4d7bbad7c77f466a00f0bd21e7e4ea09c3b1 (patch) | |
tree | 0894d7de36ec28e20f36311c5144959d6f604343 /src/provider/gandi.rs | |
parent | 0d37299b24ec112b752b81334e35bac8c2c36167 (diff) | |
download | D53-b26d4d7bbad7c77f466a00f0bd21e7e4ea09c3b1.tar.gz D53-b26d4d7bbad7c77f466a00f0bd21e7e4ea09c3b1.zip |
Change label format to be a single dns path
Diffstat (limited to 'src/provider/gandi.rs')
-rw-r--r-- | src/provider/gandi.rs | 10 |
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()?; |