Elevated Mullvad Error Returns to Error Level from Warning
All checks were successful
Run Tests on Code / run-tests (push) Successful in 10s

This commit is contained in:
Neshura 2024-03-04 16:43:56 +01:00
parent 04a1be9bcb
commit 6a31ae0f9a
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -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}"),
}
}
}