mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 18:51:20 +02:00
multi: add debug logs to catch slow shutdown
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
ba007d9373
commit
66b8700c0b
@@ -132,7 +132,8 @@ func (b *BitcoindNotifier) Stop() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
chainntnfs.Log.Info("bitcoind notifier shutting down")
|
||||
chainntnfs.Log.Info("bitcoind notifier shutting down...")
|
||||
defer chainntnfs.Log.Debug("bitcoind notifier shutdown complete")
|
||||
|
||||
// Shutdown the rpc client, this gracefully disconnects from bitcoind,
|
||||
// and cleans up all related resources.
|
||||
|
@@ -169,7 +169,8 @@ func (b *BtcdNotifier) Stop() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
chainntnfs.Log.Info("btcd notifier shutting down")
|
||||
chainntnfs.Log.Info("btcd notifier shutting down...")
|
||||
defer chainntnfs.Log.Debug("btcd notifier shutdown complete")
|
||||
|
||||
// Shutdown the rpc client, this gracefully disconnects from btcd, and
|
||||
// cleans up all related resources.
|
||||
|
@@ -174,6 +174,8 @@ func (m *MempoolNotifier) ProcessRelevantSpendTx(tx *btcutil.Tx) {
|
||||
// TearDown stops the notifier and cleans up resources.
|
||||
func (m *MempoolNotifier) TearDown() {
|
||||
Log.Infof("Stopping mempool notifier")
|
||||
defer Log.Debug("mempool notifier stopped")
|
||||
|
||||
close(m.quit)
|
||||
m.wg.Wait()
|
||||
}
|
||||
|
@@ -136,7 +136,8 @@ func (n *NeutrinoNotifier) Stop() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
chainntnfs.Log.Info("neutrino notifier shutting down")
|
||||
chainntnfs.Log.Info("neutrino notifier shutting down...")
|
||||
defer chainntnfs.Log.Debug("neutrino notifier shutdown complete")
|
||||
|
||||
close(n.quit)
|
||||
n.wg.Wait()
|
||||
|
Reference in New Issue
Block a user