forked from mirror/logrus
entry: remove duplicate hook for debug level
This commit is contained in:
parent
b65435d801
commit
11a9ddab08
1
entry.go
1
entry.go
|
@ -85,7 +85,6 @@ func (entry *Entry) log(level string, levelInt Level, msg string) string {
|
||||||
func (entry *Entry) Debug(args ...interface{}) {
|
func (entry *Entry) Debug(args ...interface{}) {
|
||||||
if entry.Logger.Level >= Debug {
|
if entry.Logger.Level >= Debug {
|
||||||
entry.log("debug", Debug, fmt.Sprint(args...))
|
entry.log("debug", Debug, fmt.Sprint(args...))
|
||||||
entry.Logger.Hooks.Fire(Debug, entry)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue