Abstract out logging function from weave api package to reduce dependencies

This commit is contained in:
Bryan Boreham committed 2016-03-07 15:37:51 +00:00
1 parent b83f4a00ed
commit f2e38ae6c5
3 files changed
+12 -8

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ func main() {
Log.Fatalf("unable to connect to docker: %s", err)
}
weave := weaveapi.NewClient(os.Getenv("WEAVE_HTTP_ADDR"))
weave := weaveapi.NewClient(os.Getenv("WEAVE_HTTP_ADDR"), Log)
Log.Println("Weave plugin", version, "Command line options:", os.Args[1:])
Log.Info(dockerClient.Info())