diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-11-01 14:58:39 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2022-03-14 12:08:39 +0100 |
| commit | 30ddf7bcc2349c2d04b22a47af850422abfb778b (patch) | |
| tree | dde749d9a5034d99388b4b5b8f14a24cc1cd9a50 | |
| parent | e2644cab30eed66233b4e191ac1d30299bc8c171 (diff) | |
| download | mullvadvpn-30ddf7bcc2349c2d04b22a47af850422abfb778b.tar.xz mullvadvpn-30ddf7bcc2349c2d04b22a47af850422abfb778b.zip | |
Log failed device removals
| -rw-r--r-- | mullvad-daemon/src/device.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mullvad-daemon/src/device.rs b/mullvad-daemon/src/device.rs index 470cfd7c89..a9cae3f8b0 100644 --- a/mullvad-daemon/src/device.rs +++ b/mullvad-daemon/src/device.rs @@ -167,7 +167,15 @@ impl AccountManager { /// Log out without waiting for the result. pub fn logout(&mut self) { let fut = self.logout_inner(true); - self.runtime.spawn(fut); + self.runtime.spawn(async move { + let result = fut.await; + if let Err(error) = result { + log::error!( + "{}", + error.display_chain_with_msg("Failed to remove a previous device") + ); + } + }); } /// Log out, and wait until the API has removed the device. |
