What changed, and why it matters
This commit only changes two log messages from warning level to debug level. It does not alter program logic, fix a bug, or change any security behavior. It is a cosmetic/logging-only change with no security relevance.
No security action needed. Treat as routine logging cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch modifies graph/db/graph_cache.go to downgrade two log.Warnf calls to log.Debugf when a node or channel is not found in the graph cache during UpdatePolicy. The control flow (early return) remains identical; only the logging verbosity changes. No security vulnerability is introduced or fixed.
Changed components
graph/db/graph_cache.goInspect captured patch +2 / −2
diff --git a/graph/db/graph_cache.go b/graph/db/graph_cache.go
index 5934837..4a3a3b0 100644
--- a/graph/db/graph_cache.go
+++ b/graph/db/graph_cache.go
@@ -192,14 +192,14 @@ func (c *GraphCache) UpdatePolicy(policy *models.CachedEdgePolicy, fromNode,
updatePolicy := func(nodeKey route.Vertex) {
if len(c.nodeChannels[nodeKey]) == 0 {
- log.Warnf("Node=%v not found in graph cache", nodeKey)
+ log.Debugf("Node=%v not found in graph cache", nodeKey)
return
}
channel, ok := c.nodeChannels[nodeKey][policy.ChannelID]
if !ok {
- log.Warnf("Channel=%v not found in graph cache",
+ log.Debugf("Channel=%v not found in graph cache",
policy.ChannelID)
return
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.