Clean up JSON logging.

This commit is contained in:
JoelKatz
2012-09-13 13:11:29 -07:00
parent 093ab09557
commit 4831588c33
2 changed files with 5 additions and 6 deletions

View File

@@ -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