profiling: Make rule_perf.log JSON output newline-delimited

Adding a newline makes the output valid JSON when multiple sortings of
the rules profile object are written to the log.
pull/8113/head
Simeon Miteff 3 years ago committed by Victor Julien
parent 5a6e68285b
commit 6673846481

@ -340,7 +340,7 @@ static void DumpJson(FILE *fp, SCProfileSummary *summary,
if (unlikely(js_s == NULL))
return;
fprintf(fp, "%s", js_s);
fprintf(fp, "%s\n", js_s);
free(js_s);
json_decref(js);
}

Loading…
Cancel
Save