summaryrefslogtreecommitdiff
path: root/server/src/transactionparser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/transactionparser.cc')
-rw-r--r--server/src/transactionparser.cc16
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();
}