Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Sep 7, 2023
1 parent 1977cea commit 7d6554b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/image-builder-bob/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
}

Expand Down

0 comments on commit 7d6554b

Please sign in to comment.