diff options
author | deva <deva> | 2009-08-05 11:41:21 +0000 |
---|---|---|
committer | deva <deva> | 2009-08-05 11:41:21 +0000 |
commit | 1b222bbd5779a371b7c857b5a90becf7ad20db74 (patch) | |
tree | f2fa12096b8850f74c1e5ee9fbb6a12ecd4c7775 /server | |
parent | c3fc3eb5584a044105f87918d50959e4534b7b7a (diff) |
Renamed TemplateParser debug group from 'macro' to 'template'.
Diffstat (limited to 'server')
-rw-r--r-- | server/src/templateparser.cc | 8 |
1 files 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; |