From c55ec885053292c1ed37aed98916aa00fac879cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Tue, 30 Nov 2021 15:54:16 +0100 Subject: [PATCH] api/koji: fix /compose/log route MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We have been actually unmarshalling into a wrong datatype for a year, by fixing this, we should get much more logging in Brew. Signed-off-by: Ondřej Budai --- internal/kojiapi/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/kojiapi/server.go b/internal/kojiapi/server.go index b26ccd8d8..d7fb582b4 100644 --- a/internal/kojiapi/server.go +++ b/internal/kojiapi/server.go @@ -400,7 +400,7 @@ func (h *apiHandlers) GetComposeIdLogs(ctx echo.Context, idstr string) error { if _, _, err := h.getBuildJob(deps[i]); err != nil { panic(err) } - var buildResult worker.OSBuildJobResult + var buildResult worker.OSBuildKojiJobResult _, _, err = h.server.workers.JobStatus(deps[i], &buildResult) if err != nil { // This is a programming error.