Commit 524a1d33 authored by Davide De Rosa's avatar Davide De Rosa
Browse files

Use .debug everywhere for consistency

Lower some useful ones to .info later.
parent 3880846a
...@@ -106,7 +106,7 @@ class ConnectivityDaemon: Daemon, ConfigurationAccess, DatabaseAccess, Preferenc ...@@ -106,7 +106,7 @@ class ConnectivityDaemon: Daemon, ConfigurationAccess, DatabaseAccess, Preferenc
return return
} }
log.info("Checking network connectivity...") log.debug("Checking network connectivity...")
accessedDatabase.transient.publicIP = nil accessedDatabase.transient.publicIP = nil
accessedDatabase.transient.vpnIP = nil accessedDatabase.transient.vpnIP = nil
Macros.postNotification(.PIADaemonsDidUpdateConnectivity) Macros.postNotification(.PIADaemonsDidUpdateConnectivity)
...@@ -121,7 +121,7 @@ class ConnectivityDaemon: Daemon, ConfigurationAccess, DatabaseAccess, Preferenc ...@@ -121,7 +121,7 @@ class ConnectivityDaemon: Daemon, ConfigurationAccess, DatabaseAccess, Preferenc
log.error("Failed to check network connectivity (error: \(error?.localizedDescription ?? "")") log.error("Failed to check network connectivity (error: \(error?.localizedDescription ?? "")")
guard (self.failedConnectivityAttempts < self.accessedConfiguration.connectivityMaxAttempts) else { guard (self.failedConnectivityAttempts < self.accessedConfiguration.connectivityMaxAttempts) else {
log.info("Giving up, network is unreachable") log.debug("Giving up, network is unreachable")
self.failedConnectivityAttempts = 0 self.failedConnectivityAttempts = 0
self.accessedDatabase.transient.isInternetReachable = false self.accessedDatabase.transient.isInternetReachable = false
Macros.postNotification(.PIADaemonsDidUpdateConnectivity) Macros.postNotification(.PIADaemonsDidUpdateConnectivity)
...@@ -129,7 +129,7 @@ class ConnectivityDaemon: Daemon, ConfigurationAccess, DatabaseAccess, Preferenc ...@@ -129,7 +129,7 @@ class ConnectivityDaemon: Daemon, ConfigurationAccess, DatabaseAccess, Preferenc
} }
let delay = self.accessedConfiguration.connectivityRetryDelay let delay = self.accessedConfiguration.connectivityRetryDelay
log.info("Retrying network connectivity in \(delay) milliseconds...") log.debug("Retrying network connectivity in \(delay) milliseconds...")
Macros.dispatch(after: .milliseconds(delay)) { Macros.dispatch(after: .milliseconds(delay)) {
self.checkConnectivityOrRetry() self.checkConnectivityOrRetry()
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment