From fbba835d7efaa4ee1d28bf5c7e2232e53d84af5e Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 5 Jul 2010 09:01:54 +0000 Subject: Remove PRACRO_ prefix from debug macros. --- server/src/transactionparser.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'server/src/transactionparser.cc') 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 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(); } -- cgit v1.2.3