Skip to content

Commit

Permalink
profiling: Make rule_perf.log JSON output newline-delimited
Browse files Browse the repository at this point in the history
Adding a newline makes the output valid JSON when multiple sortings of
the rules profile object are written to the log.
  • Loading branch information
Simeon Miteff authored and victorjulien committed Oct 28, 2022
1 parent 5a6e682 commit 6673846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util-profiling-rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6673846

Please sign in to comment.