summaryrefslogtreecommitdiff
path: root/server/src/templateparser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/templateparser.cc')
-rw-r--r--server/src/templateparser.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/templateparser.cc b/server/src/templateparser.cc
index 770d8d7..7c35518 100644
--- a/server/src/templateparser.cc
+++ b/server/src/templateparser.cc
@@ -44,7 +44,7 @@
#include <stdio.h>
#include "configuration.h"
-#include "debug.h"
+#include <hugin.hpp>
#include "exception.h"
void TemplateParser::error(const char* fmt, ...)
@@ -54,7 +54,7 @@ void TemplateParser::error(const char* fmt, ...)
va_start(argp, fmt);
vasprintf(&p, fmt, argp);
va_end(argp);
- ERR_LOG(template, "Error in TemplateParser: %s\n", p);
+ ERR(template, "Error in TemplateParser: %s\n", p);
throw Exception(std::string("Error in TemplateParser: ") + p);
free(p);
}
@@ -191,12 +191,12 @@ void TemplateParser::endTag(std::string name)
int TemplateParser::readData(char *data, size_t size)
{
if(fd == -1) {
- ERR_LOG(template, "Invalid file descriptor.\n");
+ ERR(template, "Invalid file descriptor.\n");
return 0;
}
ssize_t r = read(fd, data, size);
if(r == -1) {
- ERR_LOG(template, "Could not read...%s\n", strerror(errno));
+ ERR(template, "Could not read...%s\n", strerror(errno));
return 0;
}
return r;