Skip to content

Make json_ui_msg write to out member not std::cout #2045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/util/ui_message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ void ui_message_handlert::json_ui_msg(
// By convention a leading comma is created by every new array entry.
// The first entry is generated in the constructor and does not have
// a trailing comma.
std::cout << ",\n" << result;
out << ",\n" << result;
Copy link
Member

@peterschrammel peterschrammel Apr 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code has been removed in #2039. The writing to out is already handled through the json_streamt above.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, thank you, I was just about to ask :)

}

void ui_message_handlert::flush(unsigned level)
Expand Down