Skip to content

Commit 5b0a950

Browse files
committed
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.
1 parent b5bc9c8 commit 5b0a950

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

graph/db/kv_store.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,18 +530,12 @@ func (c *KVStore) ForEachChannelCacheable(cb func(*models.CachedEdgeInfo,
530530
cachedPolicy1 = models.NewCachedPolicy(
531531
policy1,
532532
)
533-
} else {
534-
log.Warnf("ChannelEdgePolicy not "+
535-
"found using %v", key1)
536533
}
537534

538535
if policy2 != nil {
539536
cachedPolicy2 = models.NewCachedPolicy(
540537
policy2,
541538
)
542-
} else {
543-
log.Warnf("ChannelEdgePolicy not "+
544-
"found using %v", key2)
545539
}
546540

547541
return cb(

0 commit comments

Comments
 (0)