Skip to content

Commit d48a303

Browse files
authored
Merge pull request kubernetes#125537 from seans3/rc-fallback-log
Adds logging during remote command executor fallback
2 parents 727fe16 + d8269e5 commit d48a303

File tree

1 file changed

+3
-0
lines changed
  • staging/src/k8s.io/client-go/tools/remotecommand

1 file changed

+3
-0
lines changed

staging/src/k8s.io/client-go/tools/remotecommand/fallback.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ package remotecommand
1818

1919
import (
2020
"context"
21+
22+
"k8s.io/klog/v2"
2123
)
2224

2325
var _ Executor = &FallbackExecutor{}
@@ -51,6 +53,7 @@ func (f *FallbackExecutor) Stream(options StreamOptions) error {
5153
func (f *FallbackExecutor) StreamWithContext(ctx context.Context, options StreamOptions) error {
5254
err := f.primary.StreamWithContext(ctx, options)
5355
if f.shouldFallback(err) {
56+
klog.V(4).Infof("RemoteCommand fallback: %v", err)
5457
return f.secondary.StreamWithContext(ctx, options)
5558
}
5659
return err

0 commit comments

Comments
 (0)