[proxy] print all stderr from callWeave to the proxy logs, even if successful
This commit is contained in:
1 parent
fcea6fcbf8
commit
7821412bf7
3 files changed
+13
-8
No files matched your search
+2
-2
@@ -57,9 +57,9 @@ func NewProxy(c Config) (*Proxy, error) {
|
||||
p.client = client
|
||||
|
||||
if !p.WithoutDNS {
|
||||
dockerBridgeIP, err := callWeave("docker-bridge-ip")
|
||||
dockerBridgeIP, stderr, err := callWeave("docker-bridge-ip")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf(string(stderr))
|
||||
}
|
||||
p.dockerBridgeIP = string(dockerBridgeIP)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user