log depth max to 10

This commit is contained in:
yedf2 2021-09-03 23:57:58 +08:00
parent 455916823d
commit e5366cc029
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ conf.yml
*.out
*/**/main
main
dist

View File

@ -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