* lower key not found log level, fix #823
This commit is contained in:
parent
7e81bdddef
commit
71c1d9431f
1 changed files with 5 additions and 1 deletions
|
@ -13,7 +13,12 @@ func JsonExtractLib(jsblob string, target ...string) string {
|
|||
jsonparser.StringToBytes(jsblob),
|
||||
target...,
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
if err == jsonparser.KeyPathNotFoundError {
|
||||
log.Debugf("%+v doesn't exist", target)
|
||||
return ""
|
||||
}
|
||||
log.Errorf("jsonExtractLib : %+v : %s", target, err)
|
||||
return ""
|
||||
}
|
||||
|
@ -22,7 +27,6 @@ func JsonExtractLib(jsblob string, target ...string) string {
|
|||
return ""
|
||||
}
|
||||
strvalue := string(value)
|
||||
//debug stuff
|
||||
return strvalue
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue