summaryrefslogtreecommitdiff
path: root/src/select.cc
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2014-05-30 21:40:02 -0400
committerMartin Michlmayr <tbm@cyrius.com>2014-05-30 22:00:16 -0400
commitb2b84f35b4ac5b794b4cf82b721948fbe263718d (patch)
treed8904b427e59abbe1ecf727b629fbea903e3354d /src/select.cc
parentb534ee80a35bec45f5885ed34cc8aa672b5941a5 (diff)
downloadfork-ledger-b2b84f35b4ac5b794b4cf82b721948fbe263718d.tar.gz
fork-ledger-b2b84f35b4ac5b794b4cf82b721948fbe263718d.tar.bz2
fork-ledger-b2b84f35b4ac5b794b4cf82b721948fbe263718d.zip
Move the debug statement to where it makes more sense
It's possible to just say "select account" without a "from", so put the debug statement at the end of the block where the variable "formatter" is filled with the query string.
Diffstat (limited to 'src/select.cc')
-rw-r--r--src/select.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/select.cc b/src/select.cc
index 8cfb6666..201a0db1 100644
--- a/src/select.cc
+++ b/src/select.cc
@@ -358,10 +358,9 @@ value_t select_command(call_scope_t& args)
formatter << ")";
}
formatter << "\\n";
+ DEBUG("select.parse", "formatter: " << formatter.str());
}
else if (keyword == "from") {
- DEBUG("select.parse", "formatter: " << formatter.str());
-
if (arg == "xacts" || arg == "txns" || arg == "transactions") {
report_functor = expr_t::op_t::wrap_functor
(reporter<>(post_handler_ptr(new print_xacts(report,