diff options
author | deva <deva> | 2009-02-11 10:04:09 +0000 |
---|---|---|
committer | deva <deva> | 2009-02-11 10:04:09 +0000 |
commit | 8a6d1f13b7680bc8f15ce57b8065a9bc774aa891 (patch) | |
tree | d07a45e761efb1422fad7c07def6fa77bc67b1a4 /server/src/luaquerymapper.cc | |
parent | 794100bb1d29d06b379b25899053f997013332e4 (diff) |
Changed all printf debug outputs to new debug interface (PRACRO_DEBUG and friends).
Diffstat (limited to 'server/src/luaquerymapper.cc')
-rw-r--r-- | server/src/luaquerymapper.cc | 7 |
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; } |