From 6a31ae0f9a0ff20de77b07d5b094235aa168fa62 Mon Sep 17 00:00:00 2001 From: Neshura Date: Mon, 4 Mar 2024 16:43:56 +0100 Subject: [PATCH] Elevated Mullvad Error Returns to Error Level from Warning --- src/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index ede143a..da381a4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -79,10 +79,10 @@ impl Addresses { } } Err(e) => { - let warn_msg = format!("Unable to fetch IPv4 from '{}'. Error: {}", self.ipv4_uri, e); + let error_msg = format!("Unable to fetch IPv4 from '{}': {}", self.ipv4_uri, e); match connected_to_journal() { - true => warn!("[WARN] {warn_msg}"), - false => println!("[WARN] {warn_msg}"), + true => error!("[ERROR] {error_msg}"), + false => eprintln!("[ERROR] {error_msg}"), } } } @@ -108,10 +108,10 @@ impl Addresses { } } Err(e) => { - let warn_msg = format!("Unable to fetch IPv6 from '{}'. Error: {}", self.ipv6_uri, e); + let error_msg = format!("Unable to fetch IPv6 from '{}': {}", self.ipv6_uri, e); match connected_to_journal() { - true => warn!("[WARN] {warn_msg}"), - false => println!("[WARN] {warn_msg}"), + true => error!("[ERROR] {error_msg}"), + false => eprintln!("[ERROR] {error_msg}"), } } }