Skip to content

Commit f975b4b

Browse files
authored
Merge pull request kubernetes#91066 from rphillips/fixes/exec-probe_log
kubelet: tweak exec-probe log statement to be more concise
2 parents 9978c28 + 348d994 commit f975b4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kubelet/prober/prober.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func buildHeader(headerList []v1.HTTPHeader) http.Header {
163163
func (pb *prober) runProbe(probeType probeType, p *v1.Probe, pod *v1.Pod, status v1.PodStatus, container v1.Container, containerID kubecontainer.ContainerID) (probe.Result, string, error) {
164164
timeout := time.Duration(p.TimeoutSeconds) * time.Second
165165
if p.Exec != nil {
166-
klog.V(4).Infof("Exec-Probe Pod: %v, Container: %v, Command: %v", pod, container, p.Exec.Command)
166+
klog.V(4).Infof("Exec-Probe Pod: %v, Container: %v, Command: %v", pod.Name, container.Name, p.Exec.Command)
167167
command := kubecontainer.ExpandContainerCommandOnlyStatic(p.Exec.Command, container.Env)
168168
return pb.exec.Probe(pb.newExecInContainer(container, containerID, command, timeout))
169169
}

0 commit comments

Comments
 (0)