mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Clean up JSON logging.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "Ledger.h"
|
||||
#include "Serializer.h"
|
||||
#include "Log.h"
|
||||
|
||||
AccountState::AccountState(const NewcoinAddress& naAccountID) : mAccountID(naAccountID), mValid(false)
|
||||
{
|
||||
@@ -59,11 +60,8 @@ void AccountState::addJson(Json::Value& val)
|
||||
void AccountState::dump()
|
||||
{
|
||||
Json::Value j(Json::objectValue);
|
||||
|
||||
addJson(j);
|
||||
|
||||
Json::StyledStreamWriter ssw;
|
||||
ssw.write(std::cerr, j);
|
||||
Log(lsINFO) << j;
|
||||
}
|
||||
|
||||
// vim:ts=4
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
#include "../json/writer.h"
|
||||
|
||||
#include "Log.h"
|
||||
|
||||
std::auto_ptr<SerializedType> STObject::makeDefaultObject(SerializedTypeID id, const char *name)
|
||||
{
|
||||
switch(id)
|
||||
@@ -713,8 +715,7 @@ void STObject::unitTest()
|
||||
copy.setValueFieldU32(sfTest3, 1);
|
||||
if (object1.getSerializer() == copy.getSerializer()) throw std::runtime_error("STObject error");
|
||||
#ifdef DEBUG
|
||||
Json::StyledStreamWriter ssw;
|
||||
ssw.write(std::cerr, copy.getJson(0));
|
||||
Log(lsDEBUG) << copy.getJson(0);
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < 1000; i++)
|
||||
|
||||
Reference in New Issue
Block a user