more node signal queue logging

gql_cataclysm
noah metz 2023-07-30 11:02:22 -06:00
parent 96c2b84b6f
commit ad6ea0cc59
1 changed files with 5 additions and 1 deletions

@ -225,7 +225,11 @@ func nodeLoop(ctx *Context, node *Node) error {
node.SignalQueue = node.SignalQueue[:(l-1)]
node.NextSignal, node.TimeoutChan = SoonestSignal(node.SignalQueue)
ctx.Log.Logf("node", "NODE_TIMEOUT %s - NEXT_SIGNAL: %s", node.ID, signal)
if node.NextSignal == nil {
ctx.Log.Logf("node", "NODE_TIMEOUT(%s) - PROCESSING %+v - NEXT_SIGNAL nil", node.ID, signal)
} else {
ctx.Log.Logf("node", "NODE_TIMEOUT(%s) - PROCESSING %+v - NEXT_SIGNAL: %s@%s", node.ID, signal, node.NextSignal, node.NextSignal.Time)
}
}
// Handle special signal types