rpc: fix log message in Node.UpdateStatus (#17537)

This commit is contained in:
Luiz Aoqui 2023-06-14 16:51:46 -04:00 committed by GitHub
parent 5b9322c70a
commit bdc7f3305f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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().