multi: add debug logs to catch slow shutdown

This commit is contained in:
yyforyongyu authored and Olaoluwa Osuntokun committed 2023-10-06 16:34:47 -07:00
1 parent ba007d9373
commit 66b8700c0b
24 files changed
+59 -23

No files matched your search

+3 -1
View File
@@ -225,7 +225,9 @@ func (m *ChanStatusManager) start() error {
// Stop safely shuts down the ChanStatusManager.
func (m *ChanStatusManager) Stop() error {
m.stopped.Do(func() {
log.Info("Channel Status Manager shutting down")
log.Info("Channel Status Manager shutting down...")
defer log.Debug("Channel Status Manager shutdown complete")
close(m.quit)
m.wg.Wait()
})