Report errors by setting raw_output when it's error level

This commit is contained in:
Pablo Carranza
2025-02-02 20:43:40 +01:00
parent 3510152e36
commit 7c263aa061
2 changed files with 42 additions and 27 deletions

View File

@@ -143,6 +143,12 @@ func (r *Reporter) Fire(entry *log.Entry) error {
if step.StartedAt == nil {
step.StartedAt = timestamppb.New(timestamp)
}
// Force reporting log errors as raw output to prevent silent failures
if entry.Level == log.ErrorLevel {
entry.Data["raw_output"] = true
}
if v, ok := entry.Data["raw_output"]; ok {
if rawOutput, ok := v.(bool); ok && rawOutput {
if row := r.parseLogRow(entry); row != nil {