diff options
| author | David Lönnhager <david.l@mullvad.net> | 2020-11-04 18:19:05 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2020-11-04 18:19:05 +0100 |
| commit | e858bdb47d08e98be4d2827e0b2b15c59d7cccf8 (patch) | |
| tree | 64bef52dbc0c3a7a2306624448e8ff125028f6b7 | |
| parent | c89ba2bed81a1eaee244ee98252184c426143846 (diff) | |
| download | mullvadvpn-e858bdb47d08e98be4d2827e0b2b15c59d7cccf8.tar.xz mullvadvpn-e858bdb47d08e98be4d2827e0b2b15c59d7cccf8.zip | |
Don't log absence of systemd-resolved as an error
| -rw-r--r-- | talpid-core/src/dns/linux/systemd_resolved.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/talpid-core/src/dns/linux/systemd_resolved.rs b/talpid-core/src/dns/linux/systemd_resolved.rs index 8039b9b112..bacd416382 100644 --- a/talpid-core/src/dns/linux/systemd_resolved.rs +++ b/talpid-core/src/dns/linux/systemd_resolved.rs @@ -98,8 +98,12 @@ impl SystemdResolved { Ok(systemd_resolved) })(); - if let Err(err) = &result { - log::error!("systemd-resolved is not being used because: {}", err); + match &result { + Err(Error::NoSystemdResolved(_)) => (), + Err(error) => { + log::error!("systemd-resolved is not being used because: {}", error); + } + Ok(_) => (), } |
