Update router code to use common logger
This commit is contained in:
1 parent
13c0b62f96
commit
013380c7e7
9 files changed
+49
-41
No files matched your search
+4
-3
@@ -5,21 +5,22 @@ import (
|
||||
"crypto/rand"
|
||||
"encoding/gob"
|
||||
"fmt"
|
||||
"log"
|
||||
"net"
|
||||
|
||||
. "github.com/weaveworks/weave/common"
|
||||
)
|
||||
|
||||
var void = struct{}{}
|
||||
|
||||
func checkFatal(e error) {
|
||||
if e != nil {
|
||||
log.Fatal(e)
|
||||
Log.Fatal(e)
|
||||
}
|
||||
}
|
||||
|
||||
func checkWarn(e error) {
|
||||
if e != nil {
|
||||
log.Println(e)
|
||||
Log.Warnln(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user