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:
Matthias Radestock committed 2015-08-17 16:15:45 +01:00
1 parent 8c9679b19c
commit 375af0a7b9
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -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")