mirror of https://github.com/sirupsen/logrus.git
Add missing `(*Entry) Warning()` function
This commit is contained in:
parent
d2f9ffa1d9
commit
e2dff63faa
4
entry.go
4
entry.go
|
@ -126,6 +126,10 @@ func (entry *Entry) Warn(args ...interface{}) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (entry *Entry) Warning(args ...interface{}) {
|
||||||
|
entry.Warn(args...)
|
||||||
|
}
|
||||||
|
|
||||||
func (entry *Entry) Error(args ...interface{}) {
|
func (entry *Entry) Error(args ...interface{}) {
|
||||||
if entry.Logger.Level >= ErrorLevel {
|
if entry.Logger.Level >= ErrorLevel {
|
||||||
entry.log(ErrorLevel, fmt.Sprint(args...))
|
entry.log(ErrorLevel, fmt.Sprint(args...))
|
||||||
|
|
Loading…
Reference in New Issue