From 9ce498f89013d3282a40af61f97e50069c24ac9c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 20 Jun 2010 17:10:50 -0400 Subject: [PATCH] Added debug print for commodity.prices.find --- src/amount.cc | 2 ++ 1 file changed, 2 insertions(+) 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& 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();