From 07c8dbcc56948bee1acde513c785da083c5d94df Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Thu, 9 Mar 2023 23:18:19 +0100 Subject: [PATCH] invert print order --- bundle/run/pipeline.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/run/pipeline.go b/bundle/run/pipeline.go index e1380660f..78501e782 100644 --- a/bundle/run/pipeline.go +++ b/bundle/run/pipeline.go @@ -92,7 +92,7 @@ func (r *pipelineRunner) logErrorEvent(ctx context.Context, pipelineId string, u // for the pipeline are should be very close 0, and this would not be worth the additional // complexity and latency cost for that extremely rare edge case updateEvents := filterEventsByUpdateId(res.Events, updateId) - for i := 0; i < len(updateEvents); i++ { + for i := len(updateEvents) - 1; i >= 0; i-- { r.logEvent(updateEvents[i]) } return nil