Skip to content

Commit c2ef00d

Browse files
committed
Log execs
Signed-off-by: Akshit Garg <[email protected]>
1 parent 52c28d4 commit c2ef00d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

percona/clientcmd/clientcmd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package clientcmd
33
import (
44
"context"
55
"io"
6+
"log"
67

78
"github.com/pkg/errors"
89
corev1 "k8s.io/api/core/v1"
@@ -68,6 +69,7 @@ func (c *Client) Exec(ctx context.Context, pod *corev1.Pod, containerName string
6869
TTY: tty,
6970
}, scheme.ParameterCodec)
7071

72+
log.Println("Execing in pod", pod.Name, containerName)
7173
exec, err := remotecommand.NewSPDYExecutor(c.restconfig, "POST", req.URL())
7274
if err != nil {
7375
return errors.Wrap(err, "failed to create executor")

0 commit comments

Comments
 (0)