mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-02-23 15:34:22 +01:00
breacharbiter: only log if we have any active channels
This commit modifies the contractObserver slightly to along log if we have any active channels, which avoids a meaningless log message.
This commit is contained in:
@@ -128,8 +128,10 @@ func (b *breachArbiter) contractObserver() {
|
||||
brarLog.Errorf("unable to fetch active channels: %v", err)
|
||||
}
|
||||
|
||||
brarLog.Infof("Retrieved %v channels from database, watching with "+
|
||||
"vigilance!", len(activeChannels))
|
||||
if len(activeChannels) > 0 {
|
||||
brarLog.Infof("Retrieved %v channels from database, watching "+
|
||||
"with vigilance!", len(activeChannels))
|
||||
}
|
||||
|
||||
// For each active channel found within the database, we launch a
|
||||
// detected breachObserver goroutine for that channel and also track
|
||||
|
||||
Reference in New Issue
Block a user