From a796357c3ee447151cb649934e0d2f62c8b7eec0 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Thu, 31 Oct 2024 18:14:38 -0700 Subject: [PATCH] (DISREGARD) add new logs 2 --- dispatcher/dispatcher.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dispatcher/dispatcher.go b/dispatcher/dispatcher.go index 7ad75145..abea106d 100644 --- a/dispatcher/dispatcher.go +++ b/dispatcher/dispatcher.go @@ -227,6 +227,7 @@ func (d *Dispatcher) Run() { done := d.ctx.Done() loop: for { + //simplelogger.Warnf("Run loop") select { case f := <-d.taskChan: f() @@ -274,6 +275,9 @@ loop: func (d *Dispatcher) goUntilPauseTime() { for d.CurTime < d.pauseTime { + + //simplelogger.Warnf("goUntilPauseTime curTime %v - pauseTime %v", d.CurTime, d.pauseTime) + d.handleTasks() if d.ctx.Err() != nil { @@ -743,8 +747,11 @@ func (d *Dispatcher) syncAliveNodes() { return } + simplelogger.Warnf("goUntilPauseTime curTime %v - pauseTime %v", d.CurTime, d.pauseTime) + simplelogger.Warnf("syncing %d alive nodes: %v", len(d.aliveNodes), d.aliveNodes) for nodeid := range d.aliveNodes { + simplelogger.Warnf('nodeid %d', nodeid) d.advanceNodeTime(nodeid, d.CurTime, true) } }