Skip to content

Commit

Permalink
fix(engine): correctly format json output in json_event
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
  • Loading branch information
jasondellaluce authored and poiana committed Jan 14, 2022
1 parent f8f053c commit 6bf8f34
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions userspace/engine/json_evt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1529,12 +1529,9 @@ void json_event_formatter::set_format(output_format of, const std::string &forma
bool json_event_formatter::tostring_withformat(gen_event *gevt, std::string &output, gen_event_formatter::output_format of)
{
json_event *ev = static_cast<json_event *>(gevt);

std::string ret;

if(of == OF_JSON)
{
ret = tojson(ev);
output = tojson(ev);
return true;
}
else
Expand Down

0 comments on commit 6bf8f34

Please sign in to comment.