mirror of
https://github.com/fosrl/newt.git
synced 2026-03-10 12:46:38 +00:00
Adjust logging
This commit is contained in:
@@ -123,7 +123,7 @@ func (m *Monitor) AddTargets(configs []Config) error {
|
|||||||
m.mutex.Lock()
|
m.mutex.Lock()
|
||||||
defer m.mutex.Unlock()
|
defer m.mutex.Unlock()
|
||||||
|
|
||||||
logger.Info("Adding %d health check targets in bulk", len(configs))
|
logger.Debug("Adding %d health check targets in bulk", len(configs))
|
||||||
|
|
||||||
for _, config := range configs {
|
for _, config := range configs {
|
||||||
if err := m.addTargetUnsafe(config); err != nil {
|
if err := m.addTargetUnsafe(config); err != nil {
|
||||||
@@ -136,7 +136,7 @@ func (m *Monitor) AddTargets(configs []Config) error {
|
|||||||
// Don't notify callback immediately - let the initial health checks complete first
|
// Don't notify callback immediately - let the initial health checks complete first
|
||||||
// The callback will be triggered when the first health check results are available
|
// The callback will be triggered when the first health check results are available
|
||||||
|
|
||||||
logger.Info("Successfully added all %d health check targets", len(configs))
|
logger.Debug("Successfully added all %d health check targets", len(configs))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -448,7 +448,7 @@ persistent_keepalive_interval=5`, fixKey(privateKey.String()), fixKey(wgData.Pub
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Warn("Initial reliable ping failed, but continuing: %v", err)
|
logger.Warn("Initial reliable ping failed, but continuing: %v", err)
|
||||||
} else {
|
} else {
|
||||||
logger.Info("Initial connection test successful!")
|
logger.Info("Initial connection test successful")
|
||||||
}
|
}
|
||||||
|
|
||||||
pingWithRetryStopChan, _ = pingWithRetry(tnet, wgData.ServerIP, pingTimeout)
|
pingWithRetryStopChan, _ = pingWithRetry(tnet, wgData.ServerIP, pingTimeout)
|
||||||
|
|||||||
Reference in New Issue
Block a user