diff --git a/pkg/infra/log/log.go b/pkg/infra/log/log.go index e923912073c..5a0aa42d10b 100644 --- a/pkg/infra/log/log.go +++ b/pkg/infra/log/log.go @@ -36,54 +36,10 @@ func New(logger string, ctx ...interface{}) Logger { return Root.New(params...) } -func Tracef(format string, v ...interface{}) { - var message string - if len(v) > 0 { - message = fmt.Sprintf(format, v...) - } else { - message = format - } - - Root.Debug(message) -} - -func Debugf(format string, v ...interface{}) { - var message string - if len(v) > 0 { - message = fmt.Sprintf(format, v...) - } else { - message = format - } - - Root.Debug(message) -} - -func Infof(format string, v ...interface{}) { - var message string - if len(v) > 0 { - message = fmt.Sprintf(format, v...) - } else { - message = format - } - - Root.Info(message) -} - func Warn(msg string, v ...interface{}) { Root.Warn(msg, v...) } -func Warnf(format string, v ...interface{}) { - var message string - if len(v) > 0 { - message = fmt.Sprintf(format, v...) - } else { - message = format - } - - Root.Warn(message) -} - func Debug(msg string, args ...interface{}) { Root.Debug(msg, args...) } @@ -96,18 +52,6 @@ func Error(msg string, args ...interface{}) { Root.Error(msg, args...) } -func Errorf(skip int, format string, v ...interface{}) { - Root.Error(fmt.Sprintf(format, v...)) -} - -func Fatalf(skip int, format string, v ...interface{}) { - Root.Crit(fmt.Sprintf(format, v...)) - if err := Close(); err != nil { - fmt.Fprintf(os.Stderr, "Failed to close log: %s\n", err) - } - os.Exit(1) -} - func Close() error { var err error for _, logger := range loggersToClose {