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

+2 -1
View File
@@ -158,7 +158,8 @@ func (s *SubSwapper) Start() error {
// Stop signals the SubSwapper to being a graceful shutdown.
func (s *SubSwapper) Stop() error {
s.stopped.Do(func() {
log.Infof("Stopping chanbackup.SubSwapper")
log.Infof("chanbackup.SubSwapper shutting down...")
defer log.Debug("chanbackup.SubSwapper shutdown complete")
close(s.quit)
s.wg.Wait()