diff options
| author | David Lönnhager <david.l@mullvad.net> | 2019-12-11 09:48:13 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2019-12-17 12:30:15 +0100 |
| commit | 290a642b487d3deb37148157eaf65f6151fb1fb9 (patch) | |
| tree | 7d678e03e3334549b3ded646de39eb083b70f79a | |
| parent | a360edc98954e41e3280a44bb1a5e54507ad48eb (diff) | |
| download | mullvadvpn-290a642b487d3deb37148157eaf65f6151fb1fb9.tar.xz mullvadvpn-290a642b487d3deb37148157eaf65f6151fb1fb9.zip | |
Remove excessive logging in mullvad_daemon::wireguard
| -rw-r--r-- | mullvad-daemon/src/wireguard.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mullvad-daemon/src/wireguard.rs b/mullvad-daemon/src/wireguard.rs index ee23483906..33a7fc25d9 100644 --- a/mullvad-daemon/src/wireguard.rs +++ b/mullvad-daemon/src/wireguard.rs @@ -64,8 +64,6 @@ impl Future for KeyRotationScheduler { type Error = Error; fn poll(&mut self) -> Poll<(), Error> { - log::debug!("Poll key rotation future"); - if let Some(key_request_rx) = &mut self.key_request_rx { let poll_result = key_request_rx.poll(); @@ -96,6 +94,8 @@ impl Future for KeyRotationScheduler { _ => (), } + log::debug!("Running automatic key rotation"); + let (wg_tx, wg_rx) = oneshot::channel(); let _ = self .daemon_tx @@ -104,8 +104,6 @@ impl Future for KeyRotationScheduler { )) .map_err(|_| Error::RunAutomaticKeyRotation)?; - log::debug!("Sent key replacement request"); - self.key_request_rx = Some(wg_rx); futures::task::current().notify(); Ok(Async::NotReady) |
