diff options
author | deva <deva> | 2010-07-05 09:01:54 +0000 |
---|---|---|
committer | deva <deva> | 2010-07-05 09:01:54 +0000 |
commit | fbba835d7efaa4ee1d28bf5c7e2232e53d84af5e (patch) | |
tree | 5b71566f174143fea11e21e0c034bd6a1026c03d /server/src/transactionparser.cc | |
parent | 71318f4e56dd1467b071404c61f686745cf3dfc4 (diff) |
Remove PRACRO_ prefix from debug macros.
Diffstat (limited to 'server/src/transactionparser.cc')
-rw-r--r-- | server/src/transactionparser.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/src/transactionparser.cc b/server/src/transactionparser.cc index b33cac6..f78e562 100644 --- a/server/src/transactionparser.cc +++ b/server/src/transactionparser.cc @@ -46,7 +46,7 @@ TransactionParser::TransactionParser(Transaction *transaction) void TransactionParser::startTag(std::string name, std::map<std::string, std::string> attributes) { - PRACRO_DEBUG(transactionparser, "<%s>\n", name.c_str()); + DEBUG(transactionparser, "<%s>\n", name.c_str()); if(name == "pracro") { transaction->user = attributes["user"]; @@ -71,17 +71,17 @@ void TransactionParser::startTag(std::string name, if(name == "field") { if(!transaction->commits.size()) { - PRACRO_ERR(transactionparser, "Field without a commit tag!"); + ERR(transactionparser, "Field without a commit tag!"); throw std::exception(); } if(attributes.find("name") == attributes.end()) { - PRACRO_ERR(transactionparser, "Field is missing 'name' attribute"); + ERR(transactionparser, "Field is missing 'name' attribute"); throw std::exception(); } if(attributes.find("value") == attributes.end()) { - PRACRO_ERR(transactionparser, "Field is missing 'value' attribute"); + ERR(transactionparser, "Field is missing 'value' attribute"); throw std::exception(); } @@ -93,14 +93,14 @@ void TransactionParser::startTag(std::string name, void TransactionParser::parseError(const char *buf, size_t len, std::string error, int lineno) { - PRACRO_ERR(transactionparser, "TransactionParser error at line %d: %s\n", - lineno, error.c_str()); + ERR(transactionparser, "TransactionParser error at line %d: %s\n", + lineno, error.c_str()); std::string xml; xml.append(buf, len); - PRACRO_ERR(transactionparser, "\tBuffer %u bytes: [%s]\n", - len, xml.c_str()); + ERR(transactionparser, "\tBuffer %u bytes: [%s]\n", + len, xml.c_str()); throw std::exception(); } |