diff --git a/netann/chan_status_manager.go b/netann/chan_status_manager.go index feb3a5dd19..758b00d1b7 100644 --- a/netann/chan_status_manager.go +++ b/netann/chan_status_manager.go @@ -252,6 +252,8 @@ func (m *ChanStatusManager) Stop() error { func (m *ChanStatusManager) RequestEnable(outpoint wire.OutPoint, manual bool) error { + log.Debugf("Requesting enable for channel %v", outpoint) + return m.submitRequest(m.enableRequests, outpoint, manual) } @@ -278,6 +280,8 @@ func (m *ChanStatusManager) RequestEnable(outpoint wire.OutPoint, func (m *ChanStatusManager) RequestDisable(outpoint wire.OutPoint, manual bool) error { + log.Debugf("Requesting disable channel %v", outpoint) + return m.submitRequest(m.disableRequests, outpoint, manual) } @@ -285,6 +289,9 @@ func (m *ChanStatusManager) RequestDisable(outpoint wire.OutPoint, // If the channel is in the state ChanStatusManuallyDisabled, it will be moved // back to the state ChanStatusDisabled. Otherwise, no action will be taken. func (m *ChanStatusManager) RequestAuto(outpoint wire.OutPoint) error { + + log.Debugf("Requesting auto for channel %v", outpoint) + return m.submitRequest(m.autoRequests, outpoint, true) } @@ -352,6 +359,8 @@ func (m *ChanStatusManager) statusManager() { // Use long-polling to detect when channels become inactive. case <-m.statusSampleTicker.C: + log.Debug("Sampling channel statuses") + // First, do a sweep and mark any ChanStatusEnabled // channels that are not active within the htlcswitch as // ChanStatusPendingDisabled. The channel will then be