summaryrefslogtreecommitdiff
path: root/src/iterators.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/iterators.cc')
-rw-r--r--src/iterators.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/iterators.cc b/src/iterators.cc
index a01c4918..835fec9d 100644
--- a/src/iterators.cc
+++ b/src/iterators.cc
@@ -177,6 +177,13 @@ void sorted_accounts_iterator::sort_accounts(account_t& account,
std::stable_sort(deque.begin(), deque.end(),
compare_items<account_t>(sort_cmp));
+
+#if defined(DEBUG_ON)
+ if (SHOW_DEBUG("accounts.sorted")) {
+ foreach (account_t * account, deque)
+ DEBUG("accounts.sorted", "Account: " << account->fullname());
+ }
+#endif
}
void sorted_accounts_iterator::push_all(account_t& account)