Skip to content

Commit d244407

Browse files
authored
Merge pull request containerd#9541 from samuelkarp/klog-infof
integration: fix format string for klog.Infof
2 parents e5e7f61 + 25dc823 commit d244407

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

integration/remote/remote_runtime.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@ import (
4141

4242
"google.golang.org/grpc"
4343
"google.golang.org/grpc/credentials/insecure"
44-
"k8s.io/klog/v2"
45-
46-
internalapi "github.com/containerd/containerd/v2/integration/cri-api/pkg/apis"
4744
"k8s.io/component-base/logs/logreduction"
4845
runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
46+
"k8s.io/klog/v2"
4947
utilexec "k8s.io/utils/exec"
5048

49+
internalapi "github.com/containerd/containerd/v2/integration/cri-api/pkg/apis"
5150
"github.com/containerd/containerd/v2/integration/remote/util"
5251
)
5352

@@ -597,7 +596,7 @@ func (r *RuntimeService) ReopenContainerLog(containerID string, opts ...grpc.Cal
597596

598597
// GetContainerEvents returns a GRPC client to stream container events
599598
func (r *RuntimeService) GetContainerEvents(ctx context.Context, request *runtimeapi.GetEventsRequest, opts ...grpc.CallOption) (runtimeapi.RuntimeService_GetContainerEventsClient, error) {
600-
klog.V(10).Infof("[RuntimeService] GetContainerEvents", r.timeout)
599+
klog.V(10).Infof("[RuntimeService] GetContainerEvents (timeout=%v)", r.timeout)
601600

602601
client, err := r.runtimeClient.GetContainerEvents(ctx, request, opts...)
603602
if err != nil {

0 commit comments

Comments
 (0)