From 4adfc7efb2eb2d046027b257c9fe55cf052e9b1a Mon Sep 17 00:00:00 2001 From: Neshura Date: Wed, 27 Dec 2023 13:34:30 +0100 Subject: [PATCH] Split DNS info depending on record type. See #27 --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index e3b844e..98997b4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -278,7 +278,7 @@ fn main() { if let Some(cf_entry) = cf_entry { match cf_zone.update(entry, r#type, &cf_entry.id, ipv6, ipv4) { Ok(_) => { - let info_msg = format!("Updated DNS Record(s) for entry '{}' in zone '{}'", entry.name, zone.name); + let info_msg = format!("Updated {} DNS Record for entry '{}' in zone '{}'", r#type, entry.name, zone.name); match connected_to_journal() { true => warn!("[INFO] {info_msg}"), false => println!("[INFO] {info_msg}"), @@ -290,7 +290,7 @@ fn main() { else { match cf_zone.create(entry, r#type, ipv6, ipv4) { Ok(_) => { - let info_msg = format!("Created DNS Record(s) for entry '{}' in zone '{}'", entry.name, zone.name); + let info_msg = format!("Created {} DNS Record for entry '{}' in zone '{}'", r#type, entry.name, zone.name); match connected_to_journal() { true => info!("[INFO] {info_msg}"), false => println!("[INFO] {info_msg}"),