We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 056ffa4 commit c0a89cfCopy full SHA for c0a89cf
1 file changed
cmd/image-builder/main.go
@@ -13,6 +13,7 @@ import (
13
"strings"
14
"syscall"
15
16
+ "github.com/sirupsen/logrus"
17
"github.com/spf13/cobra"
18
"github.com/spf13/pflag"
19
@@ -655,7 +656,11 @@ operating systems like Fedora, CentOS and RHEL with easy customizations support.
655
656
if verbose {
657
olog.SetDefault(log.New(os.Stderr, "", 0))
658
olog.Print("verbose logging enabled")
- // XXX: add once images has olog support
659
+ // osbuild/images still partially uses logrus, so enable it here as well
660
+ logrus.SetLevel(logrus.DebugLevel)
661
+ logrus.SetOutput(os.Stderr)
662
+ logrus.Debug("legacy logrus logging enabled")
663
+ // XXX: add once images has olog support, and drop logrus
664
//images_log.SetDefault(log.New(os.Stderr, "", 0))
665
}
666
return nil
0 commit comments