diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-11-07 14:55:58 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-11-08 10:21:25 +0100 |
| commit | 28a60db09bcf96179f75f83fd75b61474bdd63a9 (patch) | |
| tree | 97f2b88521d1d9499d9b0f6642c8c5ed9c65a3f8 | |
| parent | 3899bc25ace5ae802e0890d5b045b21675f93066 (diff) | |
| download | mullvadvpn-28a60db09bcf96179f75f83fd75b61474bdd63a9.tar.xz mullvadvpn-28a60db09bcf96179f75f83fd75b61474bdd63a9.zip | |
Stop logging actual account token
| -rw-r--r-- | mullvad-daemon/src/settings.rs | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/mullvad-daemon/src/settings.rs b/mullvad-daemon/src/settings.rs index 10cf63123a..cb9c0daabb 100644 --- a/mullvad-daemon/src/settings.rs +++ b/mullvad-daemon/src/settings.rs @@ -111,11 +111,13 @@ impl Settings { account_token = None; } if account_token != self.account_token { - info!( - "Changing account token from {} to {}", - Self::format_account_token(&self.account_token), - Self::format_account_token(&account_token), - ); + if account_token.is_none() { + info!("Unsetting account token"); + } else if self.account_token.is_none() { + info!("Setting account token"); + } else { + info!("Changing account token") + } self.account_token = account_token; self.save().map(|_| true) } else { @@ -123,13 +125,6 @@ impl Settings { } } - fn format_account_token(account_token: &Option<String>) -> String { - match *account_token { - Some(ref account_token) => format!("\"{}\"", account_token), - None => "[none]".to_owned(), - } - } - pub fn get_relay_constraints(&self) -> RelayConstraints { self.relay_constraints.clone() } |
