Unmarshal Json (#2414)
Log the actual line that caused an error to help debugging
This commit is contained in:
parent
0f319b31fd
commit
93c22f29cf
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ func UnmarshalJSON(params ...any) (any, error) {
|
||||||
|
|
||||||
err := json.Unmarshal([]byte(jsonBlob), &out)
|
err := json.Unmarshal([]byte(jsonBlob), &out)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("UnmarshalJSON : %s", err)
|
log.WithField("line", jsonBlob).Errorf("UnmarshalJSON : %s", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
target[key] = out
|
target[key] = out
|
||||||
|
|
Loading…
Reference in a new issue