summaryrefslogtreecommitdiff
path: root/src/times.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-18 05:50:21 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-18 05:50:21 -0500
commit6cd0ba584e7bc64cbf86c58ca6fd208ba19e9dae (patch)
treee424f039c6ff157b0ac2d98776fdda8dda236658 /src/times.cc
parente4b3f0bb3a74b799f0f67d8b2f1efeedad5e2021 (diff)
downloadfork-ledger-6cd0ba584e7bc64cbf86c58ca6fd208ba19e9dae.tar.gz
fork-ledger-6cd0ba584e7bc64cbf86c58ca6fd208ba19e9dae.tar.bz2
fork-ledger-6cd0ba584e7bc64cbf86c58ca6fd208ba19e9dae.zip
Guarded some debug code
Diffstat (limited to 'src/times.cc')
-rw-r--r--src/times.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/times.cc b/src/times.cc
index 646f2a84..e3ccaff8 100644
--- a/src/times.cc
+++ b/src/times.cc
@@ -1102,10 +1102,12 @@ void date_interval_t::stabilize(const optional<date_t>& date)
DEBUG("times.interval", "stabilize: finish reset to initial finish");
}
+#if defined(DEBUG_ON)
if (start)
DEBUG("times.interval", "stabilize: final start = " << *start);
if (finish)
DEBUG("times.interval", "stabilize: final finish = " << *finish);
+#endif
}
else if (range) {
if (date) {