Skip to content

Commit

Permalink
Fix duplicate message output in json-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschrammel committed Apr 11, 2018
1 parent 513b67a commit 228c019
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/util/ui_message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,6 @@ void ui_message_handlert::json_ui_msg(
const std::string timestamp = time->stamp();
if(!timestamp.empty())
result["timestamp"] = json_stringt(timestamp);

// 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;
}

void ui_message_handlert::flush(unsigned level)
Expand Down

0 comments on commit 228c019

Please sign in to comment.