Log the actual line that caused an error to help debugging
@@ -174,7 +174,7 @@ func UnmarshalJSON(params ...any) (any, error) {
err := json.Unmarshal([]byte(jsonBlob), &out)
if err != nil {
- log.Errorf("UnmarshalJSON : %s", err)
+ log.WithField("line", jsonBlob).Errorf("UnmarshalJSON : %s", err)
return nil, err
}
target[key] = out