mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 07:00:55 +02:00
multi: add debug logs to catch slow shutdown
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
ba007d9373
commit
66b8700c0b
@@ -69,7 +69,9 @@ func (h *HostAnnouncer) Start() error {
|
||||
// Stop signals the HostAnnouncer for a graceful stop.
|
||||
func (h *HostAnnouncer) Stop() error {
|
||||
h.stopOnce.Do(func() {
|
||||
log.Info("HostAnnouncer shutting down")
|
||||
log.Info("HostAnnouncer shutting down...")
|
||||
defer log.Debug("HostAnnouncer shutdown complete")
|
||||
|
||||
close(h.quit)
|
||||
h.wg.Wait()
|
||||
})
|
||||
|
Reference in New Issue
Block a user