We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 727fe16 + d8269e5 commit d48a303Copy full SHA for d48a303
staging/src/k8s.io/client-go/tools/remotecommand/fallback.go
@@ -18,6 +18,8 @@ package remotecommand
18
19
import (
20
"context"
21
+
22
+ "k8s.io/klog/v2"
23
)
24
25
var _ Executor = &FallbackExecutor{}
@@ -51,6 +53,7 @@ func (f *FallbackExecutor) Stream(options StreamOptions) error {
51
53
func (f *FallbackExecutor) StreamWithContext(ctx context.Context, options StreamOptions) error {
52
54
err := f.primary.StreamWithContext(ctx, options)
55
if f.shouldFallback(err) {
56
+ klog.V(4).Infof("RemoteCommand fallback: %v", err)
57
return f.secondary.StreamWithContext(ctx, options)
58
}
59
return err
0 commit comments