提交 41c91917 编写于 作者: Z zhangliang032

add debug log

	JSONFind loops cost too much time for complicate SQL.
上级 42d2a086
......@@ -126,7 +126,9 @@ func jsonFind(json string, name string, find *[]string) (next []string) {
}
// JSONFind iterate find name in json
// TODO: for complicate SQL JSONFind will run a long time for json interactions.
func JSONFind(json string, name string) []string {
Log.Debug("Entering function: %s", GetFunctionName())
var find []string
next := []string{json}
for len(next) > 0 {
......@@ -136,6 +138,7 @@ func JSONFind(json string, name string) []string {
}
next = tmpNext
}
Log.Debug("Exiting function: %s", GetFunctionName())
return find
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册