summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/derive.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/derive.cc b/src/derive.cc
index e6237bf4..2fe5754f 100644
--- a/src/derive.cc
+++ b/src/derive.cc
@@ -272,11 +272,13 @@ namespace {
added->code = matching->code;
added->note = matching->note;
+#if defined(DEBUG_ON)
DEBUG("derive.xact", "Setting payee from match: " << added->payee);
if (added->code)
DEBUG("derive.xact", "Setting code from match: " << *added->code);
if (added->note)
DEBUG("derive.xact", "Setting note from match: " << *added->note);
+#endif
} else {
added->payee = tmpl.payee_mask.expr.str();
DEBUG("derive.xact", "Setting payee from template: " << added->payee);
@@ -375,13 +377,17 @@ namespace {
account_t * acct = NULL;
if (! acct) {
acct = journal.find_account_re(post.account_mask->expr.str());
+#if defined(DEBUG_ON)
if (acct)
DEBUG("derive.xact", "Found account as a regular expression");
+#endif
}
if (! acct) {
acct = journal.find_account(post.account_mask->expr.str());
+#if defined(DEBUG_ON)
if (acct)
DEBUG("derive.xact", "Found (or created) account by name");
+#endif
}
// Find out the default commodity to use by looking at the last