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:
parent
e3d7a3c8a3
commit
cba082b7ae
1 changed files with 4 additions and 0 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue