From 1b222bbd5779a371b7c857b5a90becf7ad20db74 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 5 Aug 2009 11:41:21 +0000 Subject: Renamed TemplateParser debug group from 'macro' to 'template'. --- server/src/templateparser.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/templateparser.cc b/server/src/templateparser.cc index 3a1e17b..d01aa31 100644 --- a/server/src/templateparser.cc +++ b/server/src/templateparser.cc @@ -52,7 +52,7 @@ void TemplateParser::error(const char* fmt, ...) va_start(argp, fmt); vasprintf(&p, fmt, argp); va_end(argp); - PRACRO_ERR_LOG(macro, "Error in TemplateParser: %s\n", p); + PRACRO_ERR_LOG(template, "Error in TemplateParser: %s\n", p); throw Exception(std::string("Error in TemplateParser: ") + p); free(p); } @@ -65,7 +65,7 @@ TemplateParser::TemplateParser(std::string templatefile) file = templatefile; - PRACRO_DEBUG(macro, "Using template file: %s\n", file.c_str()); + PRACRO_DEBUG(template, "Using template file: %s\n", file.c_str()); fd = open(file.c_str(), O_RDONLY); if(fd == -1) error("Could not open file %s", file.c_str()); @@ -126,12 +126,12 @@ void TemplateParser::endTag(std::string name) int TemplateParser::readData(char *data, size_t size) { if(fd == -1) { - PRACRO_ERR_LOG(macro, "Invalid file descriptor.\n"); + PRACRO_ERR_LOG(template, "Invalid file descriptor.\n"); return 0; } ssize_t r = read(fd, data, size); if(r == -1) { - PRACRO_ERR_LOG(macro, "Could not read...%s\n", strerror(errno)); + PRACRO_ERR_LOG(template, "Could not read...%s\n", strerror(errno)); return 0; } return r; -- cgit v1.2.3