From 57f31eb39adb294512a7897920e72cf6fd1bebcb Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Wed, 14 Jun 2023 16:51:46 -0400 Subject: [PATCH] rpc: fix log message in Node.UpdateStatus (#17537) --- nomad/node_endpoint.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomad/node_endpoint.go b/nomad/node_endpoint.go index 1172692c3..9a911fae1 100644 --- a/nomad/node_endpoint.go +++ b/nomad/node_endpoint.go @@ -603,7 +603,7 @@ func (n *Node) UpdateStatus(args *structs.NodeUpdateStatusRequest, reply *struct allocsUpdated := node.LastAllocUpdateIndex > node.LastMissedHeartbeatIndex if len(allocs) > 0 && !allocsUpdated { - n.logger.Debug("marking node as %s due to outdated allocation information", structs.NodeStatusInit) + n.logger.Debug(fmt.Sprintf("marking node as %s due to outdated allocation information", structs.NodeStatusInit)) args.Status = structs.NodeStatusInit } @@ -614,7 +614,7 @@ func (n *Node) UpdateStatus(args *structs.NodeUpdateStatusRequest, reply *struct return fmt.Errorf("failed to query node pool: %v", err) } if pool == nil { - n.logger.Debug("marking node as %s due to missing node pool", structs.NodeStatusInit) + n.logger.Debug(fmt.Sprintf("marking node as %s due to missing node pool", structs.NodeStatusInit)) args.Status = structs.NodeStatusInit if !node.HasEvent(NodeWaitingForNodePool) { args.NodeEvent = structs.NewNodeEvent().