removing the log function after enterprise repo update (#41197)

This commit is contained in:
ying-jeanne 2021-11-02 15:39:55 +01:00 committed by GitHub
parent 96f37b3f30
commit cedbddafe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {