mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-26 23:27:10 +02:00
multi: add debug logs to catch slow shutdown
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
ba007d9373
commit
66b8700c0b
@@ -139,7 +139,8 @@ func (p *OnionProcessor) Start() error {
|
||||
// Stop shutsdown the onion processor's sphinx router.
|
||||
func (p *OnionProcessor) Stop() error {
|
||||
|
||||
log.Info("Onion processor shutting down")
|
||||
log.Info("Onion processor shutting down...")
|
||||
defer log.Debug("Onion processor shutdown complete")
|
||||
|
||||
p.router.Stop()
|
||||
return nil
|
||||
|
@@ -92,7 +92,9 @@ func (h *HtlcNotifier) Start() error {
|
||||
func (h *HtlcNotifier) Stop() error {
|
||||
var err error
|
||||
h.stopped.Do(func() {
|
||||
log.Info("HtlcNotifier shutting down")
|
||||
log.Info("HtlcNotifier shutting down...")
|
||||
defer log.Debug("HtlcNotifier shutdown complete")
|
||||
|
||||
if err = h.ntfnServer.Stop(); err != nil {
|
||||
log.Warnf("error stopping htlc notifier: %v", err)
|
||||
}
|
||||
|
@@ -2244,7 +2244,8 @@ func (s *Switch) Stop() error {
|
||||
return errors.New("htlc switch already shutdown")
|
||||
}
|
||||
|
||||
log.Info("HTLC Switch shutting down")
|
||||
log.Info("HTLC Switch shutting down...")
|
||||
defer log.Debug("HTLC Switch shutdown complete")
|
||||
|
||||
close(s.quit)
|
||||
|
||||
|
Reference in New Issue
Block a user