Abstract out logging function from weave api package to reduce dependencies
This commit is contained in:
1 parent
b83f4a00ed
commit
f2e38ae6c5
3 files changed
+12
-8
No files matched your search
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user