Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(logging): move container errors to info #2010

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/metrics/containerd_sampler.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var (
cslog = log.WithComponent("ContainerdSampler") //nolint:gochecknoglobals

errContainerdSampler = errors.New("containerd sampler")
errInitializeContainerd = errors.New("unable to initialize containerd client, could be not installed on the host")
errInitializeContainerd = errors.New("unable to initialize containerd client, maybe it is not installed on the host")
errCannotGetPids = errors.New("unable to get pids for container")
errCannotGetTask = errors.New("unable to get task for container")
errCannotGetContainerInfo = errors.New("unable to get container info")
Expand Down Expand Up @@ -71,7 +71,7 @@ func (d *ContainerdSampler) Enabled() bool {

d.containerdClient, err = initializeContainerdClient()
if err != nil {
cslog.WithError(err).Warn(errInitializeContainerd.Error())
cslog.WithError(err).Info(errInitializeContainerd.Error())

return false
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/metrics/docker_sampler.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (d *DockerSampler) Enabled() bool {

d.dockerClient, err = initializeDockerClient(d.apiVersion)
if err != nil {
dslog.WithError(err).Warn("unable to initialize docker client, could be not installed on the host")
dslog.WithError(err).Info("unable to initialize docker client, maybe it is not installed on the host")

return false
}
Expand Down
Loading