MCPcopy Index your code
hub / github.com/keploy/keploy / RotateDebugFileForTestSet

Function RotateDebugFileForTestSet

utils/log/logger.go:639–645  ·  view source on GitHub ↗

RotateDebugFileForTestSet is the package-level convenience helper the keploy-agent's BeforeSimulate route handler calls when a new test set begins. It locates the active sink (if any) and rotates to a per-test-set scope. Errors are returned for the caller to log; they are never fatal — log capture i

(testSetID string)

Source from the content-addressed store, hash-verified

637// they are never fatal — log capture is a best-effort observability
638// feature.
639func RotateDebugFileForTestSet(testSetID string) error {
640 sink := GetDebugFileSink()
641 if sink == nil {
642 return nil
643 }
644 return sink.RotateForScope(testSetID)
645}

Calls 2

GetDebugFileSinkFunction · 0.85
RotateForScopeMethod · 0.80