Added debug print for commodity.prices.find

This commit is contained in:
John Wiegley 2010-06-20 17:10:50 -04:00
parent fa36fef4fa
commit 9ce498f890

View file

@ -747,6 +747,8 @@ amount_t::value(const optional<datetime_t>& moment,
if (annotation().has_flags(ANNOTATION_PRICE_FIXATED)) { if (annotation().has_flags(ANNOTATION_PRICE_FIXATED)) {
point = price_point_t(); point = price_point_t();
point->price = *annotation().price; point->price = *annotation().price;
DEBUG("commodity.prices.find",
"amount_t::value: fixated price = " << point->price);
} }
else if (! comm) { else if (! comm) {
comm = annotation().price->commodity(); comm = annotation().price->commodity();