Extra debug.

This commit is contained in:
JoelKatz
2012-04-26 18:57:24 -07:00
parent 8ad5ff9577
commit 424a3e52b3

View File

@@ -22,8 +22,17 @@ AccountState::AccountState(SerializedLedgerEntry::pointer ledgerEntry) : mLedger
{
if (!mLedgerEntry) return;
if (mLedgerEntry->getType() != ltACCOUNT_ROOT) return;
mAccountID = mLedgerEntry->getValueFieldAccount(sfAccount);
if (mAccountID.isValid()) mValid = true;
mAccountID = mLedgerEntry->getIValueFieldAccount(sfAccount);
if (mAccountID.isValid())
mValid = true;
#ifdef DEBUG
if (!mValid) std::cerr << "AccountState not valid" << std::endl;
else
{
std::cerr << "AccountState: " << std::endl << " ";
dump();
}
#endif
}
void AccountState::addJson(Json::Value& val)