Skip to content

Commit 6f02c15

Browse files
committed
Add node_name to Draining the node message
1 parent fdddd62 commit 6f02c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/node/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (n Node) CordonAndDrain(nodeName string, reason string, recorder recorderIn
129129
}
130130
var pods *corev1.PodList
131131
// Delete all pods on the node
132-
log.Info().Msg("Draining the node")
132+
log.Info().Str("node_name", nodeName).Msg("Draining the node")
133133
// Emit events for all pods that will be evicted
134134
if recorder != nil {
135135
pods, err = n.fetchAllPods(node.Name)

0 commit comments

Comments
 (0)