summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mullvad-daemon/src/device/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/mullvad-daemon/src/device/mod.rs b/mullvad-daemon/src/device/mod.rs
index 7441579fc3..92199de406 100644
--- a/mullvad-daemon/src/device/mod.rs
+++ b/mullvad-daemon/src/device/mod.rs
@@ -675,6 +675,12 @@ impl AccountManager {
async fn consume_expiry_result(&mut self, response: Result<DateTime<Utc>, Error>) {
match response {
Ok(expiry) => {
+ if expiry > chrono::Utc::now() {
+ log::debug!("Account has time left");
+ } else {
+ log::debug!("Account has no time left");
+ }
+
// Send expiry update event
let event = PrivateDeviceEvent::AccountExpiry(expiry);
self.listeners