summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2022-09-07 10:27:09 +0200
committerDavid Lönnhager <david.l@mullvad.net>2022-09-13 15:57:39 +0200
commitae6694643b10aaa7bb611aff5d5d9dc2912a9565 (patch)
treefc56ecc647a3244d965ca7541ee2035a10a3d8ef
parentfbb66be90ca20c45e3026d78c98ec10e4e767d28 (diff)
downloadmullvadvpn-ae6694643b10aaa7bb611aff5d5d9dc2912a9565.tar.xz
mullvadvpn-ae6694643b10aaa7bb611aff5d5d9dc2912a9565.zip
Log whether account has time left
-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