Skip to content

Commit

Permalink
fix: ContainerLog.ToEvent honors Level [FOUNDENG-370] (determined-ai#…
Browse files Browse the repository at this point in the history
…5558)

When manually sending an ContainerLog event to the Allocation, the Level field is ignored and resets to nil.   Propagate the Level field to the task.Event so that
the caller has control over the Level.
  • Loading branch information
jerryharrow authored Dec 8, 2022
1 parent 05c2754 commit 1854b05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions master/internal/sproto/task_actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func (c ContainerLog) ToEvent() Event {
ContainerID: c.ContainerID.String(),
Time: c.Timestamp.UTC(),
LogEvent: ptrs.Ptr(c.Message()),
Level: c.Level,
}
}

Expand Down

0 comments on commit 1854b05

Please sign in to comment.