Merge remote-tracking branch 'origin/errcode' into errcode

This commit is contained in:
withchao
2023-01-12 17:17:58 +08:00
+1
View File
@@ -185,6 +185,7 @@ func SetContextInfo(ctx context.Context, funcName string, logLevel logrus.Level,
if len(i) > 3 {
file = i[len(i)-3] + i[len(i)-2] + i[len(i)-1] + ":" + utils.IntToString(line)
}
fmt.Println(funcInfo.FuncName, "file", s, file)
funcInfo.File = s
*t.Funcs = append(*t.Funcs, funcInfo)
}