cmd/worker: configure osbuild/images logger

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 <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2025-08-06 13:47:38 +02:00 committed by Tomáš Hozza
parent e3d7a3c8a3
commit cba082b7ae

View file

@ -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()
}