Fix trailing newlines in RPC logging (#1349)
This commit is contained in:
parent
a2727af1f2
commit
037c79659c
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue