diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-05-27 15:37:14 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-05-28 09:13:11 +0200 |
| commit | 68bcc71ab497b841d3571a8a2054f092ce7bdf3d (patch) | |
| tree | f8d94f83e3a03f3bd01f8c4a19f980d0fb941555 | |
| parent | 9310fd57d41e334991eb8eb66038cf3071300dc4 (diff) | |
| download | mullvadvpn-68bcc71ab497b841d3571a8a2054f092ce7bdf3d.tar.xz mullvadvpn-68bcc71ab497b841d3571a8a2054f092ce7bdf3d.zip | |
Silence the logging around relay_list downloads
| -rw-r--r-- | mullvad-daemon/src/relays.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mullvad-daemon/src/relays.rs b/mullvad-daemon/src/relays.rs index f77dca1bec..955d577994 100644 --- a/mullvad-daemon/src/relays.rs +++ b/mullvad-daemon/src/relays.rs @@ -34,7 +34,7 @@ const DOWNLOAD_TIMEOUT: Duration = Duration::from_secs(15); /// How often the updater should wake up to check the cache of the in-memory cache of relays. /// This check is very cheap. The only reason to not have it very often is because if downloading /// constantly fails it will try very often and fill the logs etc. -const UPDATE_CHECK_INTERVAL: Duration = Duration::from_secs(60 * 2); +const UPDATE_CHECK_INTERVAL: Duration = Duration::from_secs(60 * 5); /// How old the cached relays need to be to trigger an update const UPDATE_INTERVAL: Duration = Duration::from_secs(3600); @@ -642,10 +642,7 @@ impl RelayListUpdater { if self.should_update() { match self.update() { Ok(()) => info!("Updated list of relays"), - Err(error) => error!( - "{}", - error.display_chain_with_msg("Failed to update list of relays") - ), + Err(error) => error!("{}", error.display_chain()), } } } @@ -695,8 +692,6 @@ impl RelayListUpdater { } fn download_relay_list(&mut self) -> Result<RelayList, Error> { - info!("Downloading list of relays..."); - let download_future = self.rpc_client.relay_list_v2().map_err(Error::Download); let relay_list = Timer::default() .timeout(download_future, DOWNLOAD_TIMEOUT) |
