brontide: log at debug, not error, when ignoring enable request

This commit is contained in:
Elliott Jin 2021-02-16 14:23:32 -08:00
parent 19e9ed5cdf
commit 5a54d787e1

View File

@ -2286,7 +2286,10 @@ func (p *Brontide) reenableActiveChannels() {
// channel is already active, the update won't be sent.
for _, chanPoint := range activePublicChans {
err := p.cfg.ChanStatusMgr.RequestEnable(chanPoint, false)
if err != nil {
if err == netann.ErrEnableManuallyDisabledChan {
peerLog.Debugf("Channel(%v) was manually disabled, ignoring "+
"automatic enable request", chanPoint)
} else if err != nil {
peerLog.Errorf("Unable to enable channel %v: %v",
chanPoint, err)
}