mirror of
https://github.com/astaxie/beego.git
synced 2025-06-16 17:30:40 +00:00
Fix: Set func call depth as 3
This commit is contained in:
@ -86,9 +86,6 @@ type Logger interface {
|
||||
Flush()
|
||||
}
|
||||
|
||||
var adapters = make(map[string]newLoggerFunc)
|
||||
var levelPrefix = [LevelDebug + 1]string{"[M]", "[A]", "[C]", "[E]", "[W]", "[N]", "[I]", "[D]"}
|
||||
|
||||
// Register makes a log provide available by the provided name.
|
||||
// If Register is called twice with the same name or if driver is nil,
|
||||
// it panics.
|
||||
@ -344,3 +341,7 @@ func Debug(f interface{}, v ...interface{}) {
|
||||
func Trace(f interface{}, v ...interface{}) {
|
||||
logs.Trace(f, v...)
|
||||
}
|
||||
|
||||
func init() {
|
||||
SetLogFuncCallDepth(4)
|
||||
}
|
||||
|
Reference in New Issue
Block a user