summaryrefslogtreecommitdiff
path: root/server/src/luaquerymapper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/luaquerymapper.cc')
-rw-r--r--server/src/luaquerymapper.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/luaquerymapper.cc b/server/src/luaquerymapper.cc
index 6a7282f..bec9640 100644
--- a/server/src/luaquerymapper.cc
+++ b/server/src/luaquerymapper.cc
@@ -76,7 +76,7 @@ void LUAQueryMapper::addQueryResult(QueryResult &result)
{
std::string preload = loadresultstring(result);
- printf("Preload:\n%s\n", preload.c_str());
+ PRACRO_DEBUG(querymapper, "Preload:\n%s\n", preload.c_str());
if(luaL_loadbuffer(L, preload.c_str(), preload.size(), "preload")) {
@@ -107,7 +107,7 @@ Value LUAQueryMapper::map(const std::string &mapper)
return v;
}
- printf("Mapper: %s\n", mapper.c_str());
+ PRACRO_DEBUG(querymapper, "Mapper: %s\n", mapper.c_str());
// Load the mapper
if(luaL_loadbuffer(L, mapper.c_str(), mapper.size(), "mapper")) {
@@ -157,7 +157,8 @@ Value LUAQueryMapper::map(const std::string &mapper)
v.value = lua_tostring(L, lua_gettop(L));
lua_pop(L, 1);
- printf("Result: value=%s, src=%s, time=%d\n", v.value.c_str(), v.source.c_str(), (int)v.timestamp);
+ PRACRO_DEBUG(querymapper, "Result: value=%s, src=%s, time=%d\n",
+ v.value.c_str(), v.source.c_str(), (int)v.timestamp);
return v;
}