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 }