From 5a54d787e106661da308bc07a206fee9edf1b54b Mon Sep 17 00:00:00 2001 From: Elliott Jin Date: Tue, 16 Feb 2021 14:23:32 -0800 Subject: [PATCH] brontide: log at debug, not error, when ignoring enable request --- peer/brontide.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/peer/brontide.go b/peer/brontide.go index 3377a754f..784a65d85 100644 --- a/peer/brontide.go +++ b/peer/brontide.go @@ -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) }