Update router code to use common logger

This commit is contained in:
Bryan Boreham committed 2015-07-01 12:26:23 +01:00
1 parent 13c0b62f96
commit 013380c7e7
9 files changed
+49 -41

No files matched your search

+4 -3
View File
@@ -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)
}
}