From 25dc823bfdc29b2980ea1f9d5e0cff411ba65be4 Mon Sep 17 00:00:00 2001 From: Samuel Karp Date: Wed, 13 Dec 2023 22:56:57 -0800 Subject: [PATCH] integration: fix format string for klog.Infof Signed-off-by: Samuel Karp --- integration/remote/remote_runtime.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/integration/remote/remote_runtime.go b/integration/remote/remote_runtime.go index 0474cfe3b..57d492bba 100644 --- a/integration/remote/remote_runtime.go +++ b/integration/remote/remote_runtime.go @@ -41,13 +41,12 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" - "k8s.io/klog/v2" - - internalapi "github.com/containerd/containerd/v2/integration/cri-api/pkg/apis" "k8s.io/component-base/logs/logreduction" runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1" + "k8s.io/klog/v2" utilexec "k8s.io/utils/exec" + internalapi "github.com/containerd/containerd/v2/integration/cri-api/pkg/apis" "github.com/containerd/containerd/v2/integration/remote/util" ) @@ -597,7 +596,7 @@ func (r *RuntimeService) ReopenContainerLog(containerID string, opts ...grpc.Cal // GetContainerEvents returns a GRPC client to stream container events func (r *RuntimeService) GetContainerEvents(ctx context.Context, request *runtimeapi.GetEventsRequest, opts ...grpc.CallOption) (runtimeapi.RuntimeService_GetContainerEventsClient, error) { - klog.V(10).Infof("[RuntimeService] GetContainerEvents", r.timeout) + klog.V(10).Infof("[RuntimeService] GetContainerEvents (timeout=%v)", r.timeout) client, err := r.runtimeClient.GetContainerEvents(ctx, request, opts...) if err != nil {