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:
parent
5957725975
commit
beb6303e2f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user