summaryrefslogtreecommitdiff
path: root/src/quotes.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-30 08:24:37 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:34 -0400
commit3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba (patch)
treedc04c7feaeab4ce255f4f74d47325f4efb9f8314 /src/quotes.cc
parent83fc097062c3380091556c6a4b703d28821d5464 (diff)
downloadfork-ledger-3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba.tar.gz
fork-ledger-3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba.tar.bz2
fork-ledger-3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba.zip
Changed some of the logging macro names.
Diffstat (limited to 'src/quotes.cc')
-rw-r--r--src/quotes.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/quotes.cc b/src/quotes.cc
index 1463c9bc..4b9eadae 100644
--- a/src/quotes.cc
+++ b/src/quotes.cc
@@ -10,15 +10,15 @@ void quotes_by_script::operator()(commodity_base_t& commodity,
{
LOGGER("quotes.download");
- DEBUG("commodity: " << commodity.symbol);
- DEBUG(" now: " << now);
- DEBUG(" moment: " << moment);
- DEBUG(" date: " << date);
- DEBUG(" last: " << last);
+ DEBUG_("commodity: " << commodity.symbol);
+ DEBUG_(" now: " << now);
+ DEBUG_(" moment: " << moment);
+ DEBUG_(" date: " << date);
+ DEBUG_(" last: " << last);
- if (SHOW_DEBUG() && commodity.history)
- DEBUG("last_lookup: " << commodity.history->last_lookup);
- DEBUG("pricing_leeway is " << pricing_leeway);
+ if (SHOW_DEBUG_() && commodity.history)
+ DEBUG_("last_lookup: " << commodity.history->last_lookup);
+ DEBUG_("pricing_leeway is " << pricing_leeway);
if ((commodity.history &&
(time_now - commodity.history->last_lookup) < pricing_leeway) ||
@@ -26,7 +26,7 @@ void quotes_by_script::operator()(commodity_base_t& commodity,
(price && moment > date && (moment - date) <= pricing_leeway))
return;
- DEBUG("downloading quote for symbol " << commodity.symbol);
+ DEBUG_("downloading quote for symbol " << commodity.symbol);
char buf[256];
buf[0] = '\0';
@@ -47,7 +47,7 @@ void quotes_by_script::operator()(commodity_base_t& commodity,
char * p = strchr(buf, '\n');
if (p) *p = '\0';
- DEBUG("downloaded quote: " << buf);
+ DEBUG_("downloaded quote: " << buf);
price.parse(buf);
commodity.add_price(now, price);