优化日志及config

This commit is contained in:
hoteas
2022-07-11 19:13:20 +08:00
parent 15b73b3ce7
commit e37b7b586b
6 changed files with 119 additions and 81 deletions
+6 -3
View File
@@ -91,9 +91,12 @@ func findCaller(skip int) string {
if file == "db/hotimedb.go" {
file, line = getCaller(skip + i + j)
}
//if file == "code/makecode.go" {
// file, line = getCaller(skip + i + j)
//}
if file == "code/makecode.go" {
file, line = getCaller(skip + i + j)
}
if strings.Contains(file, "application.go") {
file, line = getCaller(skip + i + j)
}
if j == 5 {
break
}