summaryrefslogtreecommitdiff
path: root/src/commodity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-06 01:59:47 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-06 02:00:36 -0600
commit02ffa7a515e4ebfb219af8dadf656f4ff806d6eb (patch)
treefc808bb3e94fb70f6ad64f0e8e4c1dc7e2bfa8a8 /src/commodity.cc
parent8ae2fb87211b2c1a0159480ea6908db2afa20189 (diff)
downloadfork-ledger-02ffa7a515e4ebfb219af8dadf656f4ff806d6eb.tar.gz
fork-ledger-02ffa7a515e4ebfb219af8dadf656f4ff806d6eb.tar.bz2
fork-ledger-02ffa7a515e4ebfb219af8dadf656f4ff806d6eb.zip
Changed the category of a few DEBUG statements
Diffstat (limited to 'src/commodity.cc')
-rw-r--r--src/commodity.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/commodity.cc b/src/commodity.cc
index 7d473d74..565204fd 100644
--- a/src/commodity.cc
+++ b/src/commodity.cc
@@ -89,6 +89,8 @@ commodity_t::find_price(const optional<commodity_t&>& commodity,
const optional<datetime_t>& moment,
const optional<datetime_t>& oldest) const
{
+ DEBUG("commodity.price.find", "commodity_t::find_price(" << symbol() << ")");
+
optional<commodity_t&> target;
if (commodity)
target = commodity;
@@ -102,14 +104,14 @@ commodity_t::find_price(const optional<commodity_t&>& commodity,
base_t::time_and_commodity_t(base_t::optional_time_pair_t(moment, oldest),
commodity ? &(*commodity) : NULL);
- DEBUG("history.find", "looking for memoized args: "
+ DEBUG("commodity.price.find", "looking for memoized args: "
<< (moment ? format_datetime(*moment) : "NONE") << ", "
<< (oldest ? format_datetime(*oldest) : "NONE") << ", "
<< (commodity ? commodity->symbol() : "NONE"));
{
base_t::memoized_price_map::iterator i = base->price_map.find(*pair);
if (i != base->price_map.end()) {
- DEBUG("history.find", "found! returning: "
+ DEBUG("commodity.price.find", "found! returning: "
<< ((*i).second ? (*i).second->price : amount_t(0L)));
return (*i).second;
}