From 037c79659c7b3413ab8cd893e67485ad3e22830a Mon Sep 17 00:00:00 2001 From: SergiySW Date: Sat, 10 Nov 2018 00:54:23 +0300 Subject: [PATCH] Fix trailing newlines in RPC logging (#1349) --- rai/node/rpc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rai/node/rpc.cpp b/rai/node/rpc.cpp index d88ae019..8eeac7af 100644 --- a/rai/node/rpc.cpp +++ b/rai/node/rpc.cpp @@ -3729,6 +3729,11 @@ std::string filter_request (boost::property_tree::ptree tree_a) std::stringstream stream; boost::property_tree::write_json (stream, tree_a, false); result = stream.str (); + // removing std::endl + if (result.length () > 1) + { + result.pop_back (); + } return result; } }