Skip to content

Commit 1fdf43a

Browse files
authored
[image-builder-mk3] log UserID when build done fails (#17128)
1 parent 2d4f946 commit 1fdf43a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/image-builder-mk3/pkg/orchestrator/orchestrator.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,9 @@ func (o *Orchestrator) Build(req *protocol.BuildRequest, resp protocol.ImageBuil
444444
// build is done
445445
o.clearListener(buildID)
446446
o.metrics.BuildDone(update.Status == protocol.BuildStatus_done_success)
447+
if update.Status != protocol.BuildStatus_done_success {
448+
log.WithField("UserID", req.GetTriggeredBy()).Error("image build done failed for user")
449+
}
447450
break
448451
}
449452
}

0 commit comments

Comments
 (0)