Skip to content

Commit 7acf6ff

Browse files
norrisjeremyLukas955
authored andcommitted
JSON output: don't truncate file when opening.
1 parent 68209e8 commit 7acf6ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/output/json/src/File.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ File::file_create(ipx_ctx_t *ctx, const std::string &tmplt, const std::string &p
373373
}
374374

375375
std::string file_name = directory + prefix + file_fmt;
376-
FILE *file = fopen(file_name.c_str(), "w");
376+
FILE *file = fopen(file_name.c_str(), "a");
377377
if (!file) {
378378
// Failed to create a flow file
379379
char buffer[128];

0 commit comments

Comments
 (0)