Improve log messages for when the proxy ignores a container
- 'ignoring' could be misread as 'dropped request', so change that to 'leaving container alone' - more elaborate reasons
This commit is contained in:
1 parent
8c9679b19c
commit
375af0a7b9
4 files changed
+6
-6
No files matched your search
@@ -32,7 +32,7 @@ func (i *createExecInterceptor) InterceptRequest(r *http.Request) error {
|
||||
_, hasWeaveWait := container.Volumes["/w"]
|
||||
cidrs, err := i.proxy.weaveCIDRsFromConfig(container.Config, container.HostConfig)
|
||||
if err != nil {
|
||||
Log.Infof("Ignoring container %s due to %s", container.ID, err)
|
||||
Log.Infof("Leaving container %s alone because %s", container.ID, err)
|
||||
} else if hasWeaveWait {
|
||||
Log.Infof("Exec in container %s with WEAVE_CIDR \"%s\"", container.ID, strings.Join(cidrs, " "))
|
||||
cmd := append(weaveWaitEntrypoint, "-s")
|
||||
|
||||
Reference in new issue
Block a user