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:
1 file changed
-6
@@ -530,18 +530,12 @@ func (c *KVStore) ForEachChannelCacheable(cb func(*models.CachedEdgeInfo,
|
|||||||
cachedPolicy1 = models.NewCachedPolicy(
|
cachedPolicy1 = models.NewCachedPolicy(
|
||||||
policy1,
|
policy1,
|
||||||
)
|
)
|
||||||
} else {
|
|
||||||
log.Warnf("ChannelEdgePolicy not "+
|
|
||||||
"found using %v", key1)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if policy2 != nil {
|
if policy2 != nil {
|
||||||
cachedPolicy2 = models.NewCachedPolicy(
|
cachedPolicy2 = models.NewCachedPolicy(
|
||||||
policy2,
|
policy2,
|
||||||
)
|
)
|
||||||
} else {
|
|
||||||
log.Warnf("ChannelEdgePolicy not "+
|
|
||||||
"found using %v", key2)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return cb(
|
return cb(
|
||||||
|
|||||||
Reference in new issue
Block a user