Skip to content

Commit e27e935

Browse files
Add EVALRESULT🌜/🌛EVALRESULT delimiters to eval.Log
1 parent 1e31a47 commit e27e935

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

eval/run.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ type logLine struct {
7777
Duration time.Duration
7878
}
7979

80+
const (
81+
startDelimiter = "EVALRESULT🌜"
82+
endDelimiter = "🌛EVALRESULT"
83+
)
84+
8085
// Log a [Sample] and [Result].
8186
// This effectively logs the eval name, sample, and result, along with timing information.
8287
// TODO include token information?
@@ -89,7 +94,7 @@ func (e *E) Log(s Sample, r Result) {
8994
Duration: time.Since(e.start),
9095
}
9196

92-
e.T.Log(mustJSON(l))
97+
e.T.Log(startDelimiter + mustJSON(l) + endDelimiter)
9398
}
9499

95100
func mustJSON(l logLine) string {

0 commit comments

Comments
 (0)