Skip to content

Commit

Permalink
Merge b061f77 into 2e47c1c
Browse files Browse the repository at this point in the history
  • Loading branch information
albertusdev committed Jul 2, 2019
2 parents 2e47c1c + b061f77 commit 6a6b5c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/logger/logger.go
Expand Up @@ -82,7 +82,7 @@ func Fatal(message string, fields ...zap.Field) {

// Fatalf allows Sprintf style formatting, logs at fatal level and exits
func Fatalf(template string, args ...interface{}) {
getSugaredLogger().Fatalf(template, args)
getSugaredLogger().Fatalf(template, args...)
}

// Info logs the message at info level with additional fields, if any
Expand All @@ -92,7 +92,7 @@ func Info(message string, fields ...zap.Field) {

// Infof allows Sprintf style formatting and logs at info level
func Infof(template string, args ...interface{}) {
getSugaredLogger().Infof(template, args)
getSugaredLogger().Infof(template, args...)
}

// Warn logs the message at warn level with additional fields, if any
Expand All @@ -102,7 +102,7 @@ func Warn(message string, fields ...zap.Field) {

// Warnf allows Sprintf style formatting and logs at warn level
func Warnf(template string, args ...interface{}) {
getSugaredLogger().Warnf(template, args)
getSugaredLogger().Warnf(template, args...)
}

// AddHook adds func(zapcore.Entry) error) to the logger lifecycle
Expand Down

0 comments on commit 6a6b5c3

Please sign in to comment.