Skip to content

Commit

Permalink
fixing minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivanshVij committed Apr 13, 2022
1 parent d28110b commit 4750b1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion stdout.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (c *ConsoleLogger) Important(msg string) {
// Importantf logs an Important level message in Blue
func (c *ConsoleLogger) Importantf(msg string, args ...interface{}) {
if c.level <= ImportantLevel {
color.Primary.Printf(msg, args)
color.Primary.Printf(msg, args...)
}
}

Expand Down
10 changes: 5 additions & 5 deletions zerolog.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,37 +35,37 @@ func (z *ZerologAdapter) Fatal(msg string) {
}

func (z *ZerologAdapter) Fatalf(msg string, args ...interface{}) {
z.l.Fatal().Msgf(msg)
z.l.Fatal().Msgf(msg, args...)
}

func (z *ZerologAdapter) Error(msg string) {
z.l.Error().Msg(msg)
}

func (z *ZerologAdapter) Errorf(msg string, args ...interface{}) {
z.l.Error().Msgf(msg, args)
z.l.Error().Msgf(msg, args...)
}

func (z *ZerologAdapter) Warn(msg string) {
z.l.Warn().Msg(msg)
}

func (z *ZerologAdapter) Warnf(msg string, args ...interface{}) {
z.l.Warn().Msgf(msg, args)
z.l.Warn().Msgf(msg, args...)
}

func (z *ZerologAdapter) Info(msg string) {
z.l.Info().Msg(msg)
}

func (z *ZerologAdapter) Infof(msg string, args ...interface{}) {
z.l.Info().Msgf(msg, args)
z.l.Info().Msgf(msg, args...)
}

func (z *ZerologAdapter) Debug(msg string) {
z.l.Debug().Msg(msg)
}

func (z *ZerologAdapter) Debugf(msg string, args ...interface{}) {
z.l.Debug().Msgf(msg, args)
z.l.Debug().Msgf(msg, args...)
}

0 comments on commit 4750b1c

Please sign in to comment.