diff options
| -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) => { |
