Skip to content

Commit

Permalink
change log to warn
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Harding <azdagron@gmail.com>
  • Loading branch information
azdagron committed Apr 23, 2024
1 parent c00870c commit bf723d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/agent/plugin/workloadattestor/docker/docker_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ func createHelper(c *dockerPluginConfig, log hclog.Logger) (*containerHelper, er
}
log.Info("Using the new container locator")
case len(c.ContainerIDCGroupMatchers) > 0:
log.Info("Using the legacy container locator with custom cgroup matchers. The new locator will be enabled by default in a future release. Consider using it now by setting `use_new_container_locator=true`.")
log.Warn("Using the legacy container locator with custom cgroup matchers. The new locator will be enabled by default in a future release. Consider using it now by setting `use_new_container_locator=true`.")
var err error
containerIDFinder, err = cgroup.NewContainerIDFinder(c.ContainerIDCGroupMatchers)
if err != nil {
return nil, err
}
default:
log.Info("Using the legacy container locator. The new locator will be enabled by default in a future release. Consider using it now by setting `use_new_container_locator=true`.")
log.Warn("Using the legacy container locator. The new locator will be enabled by default in a future release. Consider using it now by setting `use_new_container_locator=true`.")
containerIDFinder = &defaultContainerIDFinder{}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/plugin/workloadattestor/k8s/k8s_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (h *containerHelper) Configure(config *HCLConfig, log hclog.Logger) error {
if h.useNewContainerLocator {
log.Info("Using the new container locator")
} else {
log.Info("Using the legacy container locator. The new locator will be enabled by default in a future release. Consider using it now by setting `use_new_container_locator=true`.")
log.Warn("Using the legacy container locator. The new locator will be enabled by default in a future release. Consider using it now by setting `use_new_container_locator=true`.")
}

return nil
Expand Down

0 comments on commit bf723d5

Please sign in to comment.