Elevated Mullvad Error Returns to Error Level from Warning
All checks were successful
Run Tests on Code / run-tests (push) Successful in 10s
All checks were successful
Run Tests on Code / run-tests (push) Successful in 10s
This commit is contained in:
parent
04a1be9bcb
commit
6a31ae0f9a
1 changed files with 6 additions and 6 deletions
12
src/main.rs
12
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}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue