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