From 7d6554b02d2d76fda04e9dccf55edb6a16f6ecf6 Mon Sep 17 00:00:00 2001 From: Alejandro de Brito Fontes Date: Thu, 7 Sep 2023 20:40:13 +0000 Subject: [PATCH] log --- components/image-builder-bob/cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/image-builder-bob/cmd/root.go b/components/image-builder-bob/cmd/root.go index 2299d6279bf49d..ecec66111e1f4d 100644 --- a/components/image-builder-bob/cmd/root.go +++ b/components/image-builder-bob/cmd/root.go @@ -25,7 +25,7 @@ var rootCmd = &cobra.Command{ // Execute runs the root command func Execute() { - log.Logger.SetFormatter(&logrus.TextFormatter{ + log.SetFormatter(&logrus.TextFormatter{ TimestampFormat: time.RFC3339Nano, FullTimestamp: true, DisableColors: true, @@ -35,7 +35,7 @@ func Execute() { if err := rootCmd.Execute(); err != nil { fmt.Println(err) - if log.Log.Logger.IsLevelEnabled(logrus.DebugLevel) { + if log.IsLevelEnabled(logrus.DebugLevel) { time.Sleep(1 * time.Minute) }