From cba082b7aedbd8e56fcf189020203193ef74c45b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Wed, 6 Aug 2025 13:47:38 +0200 Subject: [PATCH] cmd/worker: configure osbuild/images logger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the upload code consolidation to osbuild/images, we need to make sure to configure the logger used by the library to keep logging the same (or similar) messages when running osbuild-composer. Signed-off-by: Tomáš Hozza --- cmd/osbuild-worker/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/osbuild-worker/main.go b/cmd/osbuild-worker/main.go index b86ebebf4..d410f87cf 100644 --- a/cmd/osbuild-worker/main.go +++ b/cmd/osbuild-worker/main.go @@ -7,6 +7,7 @@ import ( "errors" "flag" "fmt" + "log" "net/url" "os" "path" @@ -22,6 +23,7 @@ import ( "github.com/osbuild/images/pkg/arch" "github.com/osbuild/images/pkg/cloud/azure" "github.com/osbuild/images/pkg/dnfjson" + "github.com/osbuild/images/pkg/olog" "github.com/osbuild/images/pkg/upload/koji" "github.com/osbuild/osbuild-composer/internal/cloud/awscloud" "github.com/osbuild/osbuild-composer/internal/upload/oci" @@ -549,5 +551,7 @@ func main() { } }() + olog.SetDefault(log.New(logrus.New().Writer(), "osbuild/images log: ", 0)) + run() }