mirror of https://github.com/sirupsen/logrus.git
Fix missing var args expansion.
This commit is contained in:
parent
9a0c9801d6
commit
beee753015
12
exported.go
12
exported.go
|
@ -58,30 +58,30 @@ func WithFields(fields Fields) *Entry {
|
||||||
|
|
||||||
// Debug logs a message at level Debug on the standard logger.
|
// Debug logs a message at level Debug on the standard logger.
|
||||||
func Debug(args ...interface{}) {
|
func Debug(args ...interface{}) {
|
||||||
std.Debug(args)
|
std.Debug(args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Info logs a message at level Info on the standard logger.
|
// Info logs a message at level Info on the standard logger.
|
||||||
func Info(args ...interface{}) {
|
func Info(args ...interface{}) {
|
||||||
std.Info(args)
|
std.Info(args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Warn logs a message at level Warn on the standard logger.
|
// Warn logs a message at level Warn on the standard logger.
|
||||||
func Warn(args ...interface{}) {
|
func Warn(args ...interface{}) {
|
||||||
std.Warn(args)
|
std.Warn(args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Error logs a message at level Error on the standard logger.
|
// Error logs a message at level Error on the standard logger.
|
||||||
func Error(args ...interface{}) {
|
func Error(args ...interface{}) {
|
||||||
std.Error(args)
|
std.Error(args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Panic logs a message at level Panic on the standard logger.
|
// Panic logs a message at level Panic on the standard logger.
|
||||||
func Panic(args ...interface{}) {
|
func Panic(args ...interface{}) {
|
||||||
std.Panic(args)
|
std.Panic(args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fatal logs a message at level Fatal on the standard logger.
|
// Fatal logs a message at level Fatal on the standard logger.
|
||||||
func Fatal(args ...interface{}) {
|
func Fatal(args ...interface{}) {
|
||||||
std.Fatal(args)
|
std.Fatal(args...)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue