From 228c01920a2815fd246256903a83d45616b2d95b Mon Sep 17 00:00:00 2001 From: Peter Schrammel Date: Wed, 11 Apr 2018 10:30:44 +0100 Subject: [PATCH] Fix duplicate message output in json-ui --- src/util/ui_message.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/util/ui_message.cpp b/src/util/ui_message.cpp index 61771eb6c70..83c5473fe78 100644 --- a/src/util/ui_message.cpp +++ b/src/util/ui_message.cpp @@ -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)