Skip to content

Commit 6d84978

Browse files
committed
utils: strip retry-policy debug logs (persistence confirmed live)
1 parent 01fc537 commit 6d84978

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

pkg/utils/elements.go

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -284,16 +284,6 @@ func BuildRequestElementsMapFromSlice(projectName, flowName string, elements []m
284284
return result, nil
285285
}
286286

287-
// debugMapKeys returns the keys of a map[string]interface{} for diagnostic
288-
// logging. Order is unspecified.
289-
func debugMapKeys(m map[string]interface{}) []string {
290-
out := make([]string, 0, len(m))
291-
for k := range m {
292-
out = append(out, k)
293-
}
294-
return out
295-
}
296-
297287
// parseEdgeRetryPolicyFromRequest lifts edge.data.retryPolicy from
298288
// the request-graph edge element into a typed v1alpha1.EdgeRetryPolicy.
299289
// Returns nil when the field is absent or carries only defaults — the
@@ -397,21 +387,12 @@ func UpdateEdgesFromRequest(edges []v1alpha1.TinyNodeEdge, flowID, nodeID string
397387
}
398388
duplicates[edgeID] = struct{}{}
399389

400-
policy := parseEdgeRetryPolicyFromRequest(v)
401-
// Temporary debug log to verify the retry-policy round-trip.
402-
// Remove once UI → CRD persistence is confirmed live.
403-
if dataMap, _ := v["data"].(map[string]interface{}); dataMap != nil {
404-
fmt.Printf("[retry-debug] edge=%s data.retryPolicy=%v parsed=%+v\n",
405-
edgeID, dataMap["retryPolicy"], policy)
406-
} else {
407-
fmt.Printf("[retry-debug] edge=%s no data map; keys=%v\n", edgeID, debugMapKeys(v))
408-
}
409390
newEdges = append(newEdges, v1alpha1.TinyNodeEdge{
410391
Port: GetStr(v["sourceHandle"]),
411392
To: fmt.Sprintf("%s:%s", GetStr(v["target"]), GetStr(v["targetHandle"])),
412393
ID: edgeID,
413394
FlowID: flowID,
414-
RetryPolicy: policy,
395+
RetryPolicy: parseEdgeRetryPolicyFromRequest(v),
415396
})
416397
}
417398

0 commit comments

Comments
 (0)