Change rest of npc to weave common logging

This commit is contained in:
Bryan Boreham committed 2016-12-13 13:52:48 +00:00
1 parent 29cb13cba6
commit 7d8a18bd20
2 files changed
+13 -11

No files matched your search

+4 -3
View File
@@ -1,17 +1,18 @@
package ulogd
import (
log "github.com/Sirupsen/logrus"
"io"
"os"
"os/exec"
"github.com/weaveworks/weave/common"
)
func waitForExit(cmd *exec.Cmd) {
if err := cmd.Wait(); err != nil {
log.Fatalf("ulogd terminated: %v", err)
common.Log.Fatalf("ulogd terminated: %v", err)
}
log.Fatal("ulogd terminated normally")
common.Log.Fatal("ulogd terminated normally")
}
func Start() error {