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
@@ -54,7 +54,7 @@ func (i *createContainerInterceptor) InterceptRequest(r *http.Request) error {
|
||||
}
|
||||
|
||||
if cidrs, err := i.proxy.weaveCIDRsFromConfig(container.Config, container.HostConfig); err != nil {
|
||||
Log.Infof("Ignoring container due to %s", err)
|
||||
Log.Infof("Leaving container alone because %s", err)
|
||||
} else {
|
||||
Log.Infof("Creating container with WEAVE_CIDR \"%s\"", strings.Join(cidrs, " "))
|
||||
if container.HostConfig == nil {
|
||||
|
||||
Reference in new issue
Block a user