From ad6ea0cc5986e927f66bbf677ef81ca5d347b45e Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Sun, 30 Jul 2023 11:02:22 -0600 Subject: [PATCH] more node signal queue logging --- node.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/node.go b/node.go index 3bc47ca..e2761fc 100644 --- a/node.go +++ b/node.go @@ -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