multi: add shutdown logs in subservers
This commit adds a simple shutdown to every subserver to assist debugging.
This commit is contained in:
15 files changed
+24
-6
No files matched your search
@@ -118,6 +118,8 @@ func (b *BitcoindNotifier) Stop() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
chainntnfs.Log.Info("bitcoind notifier shutting down")
|
||||
|
||||
// Shutdown the rpc client, this gracefully disconnects from bitcoind,
|
||||
// and cleans up all related resources.
|
||||
b.chainConn.Stop()
|
||||
|
||||
@@ -161,6 +161,8 @@ func (b *BtcdNotifier) Stop() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
chainntnfs.Log.Info("btcd notifier shutting down")
|
||||
|
||||
// Shutdown the rpc client, this gracefully disconnects from btcd, and
|
||||
// cleans up all related resources.
|
||||
b.chainConn.Shutdown()
|
||||
|
||||
@@ -136,6 +136,8 @@ func (n *NeutrinoNotifier) Stop() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
chainntnfs.Log.Info("neutrino notifier shutting down")
|
||||
|
||||
close(n.quit)
|
||||
n.wg.Wait()
|
||||
|
||||
|
||||
Reference in new issue
Block a user