diff --git a/libdevcore/StructuredLogger.cpp b/libdevcore/StructuredLogger.cpp index 5655b332d..f51ed310a 100644 --- a/libdevcore/StructuredLogger.cpp +++ b/libdevcore/StructuredLogger.cpp @@ -38,9 +38,10 @@ void StructuredLogger::outputJson(Json::Value const& _value, std::string const& { Json::Value event; static Mutex s_lock; + Json::FastWriter fastWriter; Guard l(s_lock); event[_name] = _value; - cout << event << endl << flush; + cout << fastWriter.write(event) << endl; } void StructuredLogger::starting(string const& _clientImpl, const char* _ethVersion)