Replaced another log.Printf
(in a file I hadn't noticed)
This commit is contained in:
1 parent
337919d741
commit
55d21d0ec1
1 file changed
+2
-3
+2
-3
@@ -2,7 +2,6 @@ package weavedns
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@@ -12,13 +11,13 @@ func EnsureInterface(ifaceName string, wait int) (iface *net.Interface, err erro
|
|||||||
if err == nil || wait == 0 {
|
if err == nil || wait == 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Println("Waiting for interface", ifaceName, "to come up")
|
Info.Println("Waiting for interface", ifaceName, "to come up")
|
||||||
for ; err != nil && wait > 0; wait -= 1 {
|
for ; err != nil && wait > 0; wait -= 1 {
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
iface, err = findInterface(ifaceName)
|
iface, err = findInterface(ifaceName)
|
||||||
}
|
}
|
||||||
if err == nil {
|
if err == nil {
|
||||||
log.Println("Interface", ifaceName, "is up")
|
Info.Println("Interface", ifaceName, "is up")
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user