log depth max to 10
This commit is contained in:
parent
455916823d
commit
e5366cc029
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ conf.yml
|
||||
*.out
|
||||
*/**/main
|
||||
main
|
||||
dist
|
||||
|
||||
@ -112,7 +112,7 @@ func Logf(format string, args ...interface{}) {
|
||||
ts := fmt.Sprintf("%s.%03d", n.Format("2006-01-02 15:04:05"), n.Nanosecond()/1000000)
|
||||
var file string
|
||||
var line int
|
||||
for i := 1; ; i++ {
|
||||
for i := 1; i < 10; i++ {
|
||||
_, file, line, _ = runtime.Caller(i)
|
||||
if strings.Contains(file, "dtm") {
|
||||
break
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user