diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2020-09-08 09:43:37 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2020-09-08 09:51:37 +0200 |
| commit | b887120570170c9fcc1258caa016f03dfd446e8b (patch) | |
| tree | 89d805d03f23b64075a5b5fe276a1b42c762bcb2 | |
| parent | 2bb18e35c8afdeac8f11a467a495288bad33b16a (diff) | |
| download | mullvadvpn-b887120570170c9fcc1258caa016f03dfd446e8b.tar.xz mullvadvpn-b887120570170c9fcc1258caa016f03dfd446e8b.zip | |
Misc other error logging changes
| -rw-r--r-- | talpid-core/src/tunnel/wireguard/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/talpid-core/src/tunnel/wireguard/mod.rs b/talpid-core/src/tunnel/wireguard/mod.rs index a35abf9583..06bbd74fa3 100644 --- a/talpid-core/src/tunnel/wireguard/mod.rs +++ b/talpid-core/src/tunnel/wireguard/mod.rs @@ -180,7 +180,7 @@ impl WireguardMonitor { match self.tunnel.lock().expect("Tunnel lock poisoned").take() { Some(tunnel) => { if let Err(e) = tunnel.stop() { - log::error!("Failed to stop tunnel - {}", e); + log::error!("{}", e.display_chain_with_msg("Failed to stop tunnel")); } } None => { @@ -250,7 +250,7 @@ impl CloseHandle { /// Closes a WireGuard tunnel pub fn close(&mut self) { if let Err(e) = self.chan.send(CloseMsg::Stop) { - log::trace!("Failed to send close message to wireguard tunnel - {}", e); + log::trace!("Failed to send close message to wireguard tunnel: {}", e); } } } @@ -281,7 +281,7 @@ pub enum TunnelError { FatalStartWireguardError, /// Failed to tear down wireguard tunnel. - #[error(display = "Failed to stop wireguard tunnel - {}", status)] + #[error(display = "Failed to stop wireguard tunnel. Status: {}", status)] StopWireguardError { /// Returned error code status: i32, |
