diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-30 08:24:37 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:34 -0400 |
commit | 3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba (patch) | |
tree | dc04c7feaeab4ce255f4f74d47325f4efb9f8314 /src/journal.cc | |
parent | 83fc097062c3380091556c6a4b703d28821d5464 (diff) | |
download | fork-ledger-3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba.tar.gz fork-ledger-3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba.tar.bz2 fork-ledger-3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba.zip |
Changed some of the logging macro names.
Diffstat (limited to 'src/journal.cc')
-rw-r--r-- | src/journal.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/journal.cc b/src/journal.cc index 1f643364..a8ad2807 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -35,12 +35,12 @@ moment_t transaction_t::effective_date() const bool transaction_t::valid() const { if (! entry) { - DEBUG_("ledger.validate", "transaction_t: ! entry"); + DEBUG("ledger.validate", "transaction_t: ! entry"); return false; } if (state != UNCLEARED && state != CLEARED && state != PENDING) { - DEBUG_("ledger.validate", "transaction_t: state is bad"); + DEBUG("ledger.validate", "transaction_t: state is bad"); return false; } @@ -53,27 +53,27 @@ bool transaction_t::valid() const break; } if (! found) { - DEBUG_("ledger.validate", "transaction_t: ! found"); + DEBUG("ledger.validate", "transaction_t: ! found"); return false; } if (! account) { - DEBUG_("ledger.validate", "transaction_t: ! account"); + DEBUG("ledger.validate", "transaction_t: ! account"); return false; } if (! amount.valid()) { - DEBUG_("ledger.validate", "transaction_t: ! amount.valid()"); + DEBUG("ledger.validate", "transaction_t: ! amount.valid()"); return false; } if (cost && ! cost->valid()) { - DEBUG_("ledger.validate", "transaction_t: cost && ! cost->valid()"); + DEBUG("ledger.validate", "transaction_t: cost && ! cost->valid()"); return false; } if (flags & ~0x003f) { - DEBUG_("ledger.validate", "transaction_t: flags are bad"); + DEBUG("ledger.validate", "transaction_t: flags are bad"); return false; } @@ -311,7 +311,7 @@ void entry_t::add_transaction(transaction_t * xact) bool entry_t::valid() const { if (! is_valid_moment(_date) || ! journal) { - DEBUG_("ledger.validate", "entry_t: ! _date || ! journal"); + DEBUG("ledger.validate", "entry_t: ! _date || ! journal"); return false; } @@ -319,7 +319,7 @@ bool entry_t::valid() const i != transactions.end(); i++) if ((*i)->entry != this || ! (*i)->valid()) { - DEBUG_("ledger.validate", "entry_t: transaction not valid"); + DEBUG("ledger.validate", "entry_t: transaction not valid"); return false; } @@ -470,7 +470,7 @@ std::ostream& operator<<(std::ostream& out, const account_t& account) bool account_t::valid() const { if (depth > 256 || ! journal) { - DEBUG_("ledger.validate", "account_t: depth > 256 || ! journal"); + DEBUG("ledger.validate", "account_t: depth > 256 || ! journal"); return false; } @@ -478,12 +478,12 @@ bool account_t::valid() const i != accounts.end(); i++) { if (this == (*i).second) { - DEBUG_("ledger.validate", "account_t: parent refers to itself!"); + DEBUG("ledger.validate", "account_t: parent refers to itself!"); return false; } if (! (*i).second->valid()) { - DEBUG_("ledger.validate", "account_t: child not valid"); + DEBUG("ledger.validate", "account_t: child not valid"); return false; } } @@ -579,7 +579,7 @@ bool journal_t::remove_entry(entry_t * entry) bool journal_t::valid() const { if (! master->valid()) { - DEBUG_("ledger.validate", "journal_t: master not valid"); + DEBUG("ledger.validate", "journal_t: master not valid"); return false; } @@ -587,7 +587,7 @@ bool journal_t::valid() const i != entries.end(); i++) if (! (*i)->valid()) { - DEBUG_("ledger.validate", "journal_t: entry not valid"); + DEBUG("ledger.validate", "journal_t: entry not valid"); return false; } @@ -595,7 +595,7 @@ bool journal_t::valid() const i != commodity_t::commodities.end(); i++) if (! (*i).second->valid()) { - DEBUG_("ledger.validate", "journal_t: commodity not valid"); + DEBUG("ledger.validate", "journal_t: commodity not valid"); return false; } |