From 0379e7526a972874db2efacae3e84c0515ba8ba9 Mon Sep 17 00:00:00 2001 From: Reficul Date: Thu, 16 Jun 2022 19:59:47 +0800 Subject: [PATCH] fix wrong log pattern --- core/sandbox_stop.go | 2 +- core/stats.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sandbox_stop.go b/core/sandbox_stop.go index a58f640e3..1bcd1fbbc 100644 --- a/core/sandbox_stop.go +++ b/core/sandbox_stop.go @@ -63,7 +63,7 @@ func (ds *dockerService) StopPodSandbox( } if libdocker.IsContainerNotFoundError(statusErr) { logrus.Infof( - "Both sandbox container and checkpoint could not be found with id %d. " + + "Both sandbox container and checkpoint could not be found with id %q. " + "Proceed without further sandbox information.", podSandboxID) } else { return nil, errors.NewAggregate([]error{ diff --git a/core/stats.go b/core/stats.go index 2ec4372cb..615db6e80 100644 --- a/core/stats.go +++ b/core/stats.go @@ -53,7 +53,7 @@ func (ds *dockerService) ListContainerStats( listResp, err := ds.ListContainers(ctx, &runtimeapi.ListContainersRequest{Filter: filter}) if err != nil { logrus.Errorf("Error listing containers with filter: %+v", filter) - logrus.Errorf("Error listing containers error: ", err) + logrus.Errorf("Error listing containers error: %s", err) return nil, err }