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
@@ -558,7 +558,7 @@ func (proxy *Proxy) getDNSDomain() string {
if proxy.WithoutDNS {
return ""
}
weave := weaveapi.NewClient(os.Getenv("WEAVE_HTTP_ADDR"))
weave := weaveapi.NewClient(os.Getenv("WEAVE_HTTP_ADDR"), Log)
domain, _ := weave.DNSDomain()
return domain
}