summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-20 17:10:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-20 17:10:50 -0400
commit9ce498f89013d3282a40af61f97e50069c24ac9c (patch)
treef848bf80f11b80519880dfd14ba5c99a703eadc9
parentfa36fef4fad88b65085d3877d55fd9469da64db4 (diff)
downloadfork-ledger-9ce498f89013d3282a40af61f97e50069c24ac9c.tar.gz
fork-ledger-9ce498f89013d3282a40af61f97e50069c24ac9c.tar.bz2
fork-ledger-9ce498f89013d3282a40af61f97e50069c24ac9c.zip
Added debug print for commodity.prices.find
-rw-r--r--src/amount.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amount.cc b/src/amount.cc
index a5c54ce6..1fbc96c8 100644
--- a/src/amount.cc
+++ b/src/amount.cc
@@ -747,6 +747,8 @@ amount_t::value(const optional<datetime_t>& moment,
if (annotation().has_flags(ANNOTATION_PRICE_FIXATED)) {
point = price_point_t();
point->price = *annotation().price;
+ DEBUG("commodity.prices.find",
+ "amount_t::value: fixated price = " << point->price);
}
else if (! comm) {
comm = annotation().price->commodity();