diff options
| author | David Lönnhager <david.l@mullvad.net> | 2022-04-29 13:29:33 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2022-05-05 10:05:38 +0200 |
| commit | c47ba1e4b1e9c2f1e808271f18b1eb244653ab0d (patch) | |
| tree | 41094611e8fc23f20e1103f1deda7cbe8b33b80b | |
| parent | 6b1c792b0d73995897f3c81e34f231bbe1f7bed7 (diff) | |
| download | mullvadvpn-c47ba1e4b1e9c2f1e808271f18b1eb244653ab0d.tar.xz mullvadvpn-c47ba1e4b1e9c2f1e808271f18b1eb244653ab0d.zip | |
Add back logging for device validity check
| -rw-r--r-- | mullvad-daemon/src/device/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mullvad-daemon/src/device/mod.rs b/mullvad-daemon/src/device/mod.rs index 3935436f2a..8f347830a2 100644 --- a/mullvad-daemon/src/device/mod.rs +++ b/mullvad-daemon/src/device/mod.rs @@ -422,6 +422,12 @@ impl AccountManager { ..current_data.clone() }; + if Some(&new_data) != self.data.as_ref() { + log::debug!("Updating data for the current device"); + } else { + log::debug!("The current device is still valid"); + } + match self.set(InnerDeviceEvent::Updated(new_data)).await { Ok(_) => { Self::drain_requests(&mut self.validation_requests, || Ok(())); @@ -434,6 +440,8 @@ impl AccountManager { }); } } + } else { + log::debug!("Rotating invalid WireGuard key for device"); } } Err(Error::InvalidAccount) => { |
