cmd/ctrld: surpress backoff logging message

This commit is contained in:
Cuong Manh Le
2023-02-03 23:50:49 +07:00
committed by Cuong Manh Le
parent 318fec27de
commit d3fe2c730c
+1 -5
View File
@@ -2,7 +2,6 @@ package main
import ( import (
"context" "context"
"fmt"
"net" "net"
"sync" "sync"
"time" "time"
@@ -24,10 +23,7 @@ var (
) )
func probeStack() { func probeStack() {
logf := func(format string, args ...any) { b := backoff.NewBackoff("probeStack", func(format string, args ...any) {}, time.Minute)
fmt.Printf(format, args...)
}
b := backoff.NewBackoff("probeStack", logf, time.Minute)
for { for {
if _, err := controld.Dialer.Dial("udp", net.JoinHostPort(bootstrapDNS, "53")); err == nil { if _, err := controld.Dialer.Dial("udp", net.JoinHostPort(bootstrapDNS, "53")); err == nil {
hasNetworkUp = true hasNetworkUp = true