mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 14:11:04 +02:00
graph/db: remove ChannelEdgePolicy nil warning logs
Since it is not a bug for us to not yet have the policy info for a channel, we can remove these potentially spammy log lines.
This commit is contained in:
@@ -530,18 +530,12 @@ func (c *KVStore) ForEachChannelCacheable(cb func(*models.CachedEdgeInfo,
|
||||
cachedPolicy1 = models.NewCachedPolicy(
|
||||
policy1,
|
||||
)
|
||||
} else {
|
||||
log.Warnf("ChannelEdgePolicy not "+
|
||||
"found using %v", key1)
|
||||
}
|
||||
|
||||
if policy2 != nil {
|
||||
cachedPolicy2 = models.NewCachedPolicy(
|
||||
policy2,
|
||||
)
|
||||
} else {
|
||||
log.Warnf("ChannelEdgePolicy not "+
|
||||
"found using %v", key2)
|
||||
}
|
||||
|
||||
return cb(
|
||||
|
Reference in New Issue
Block a user