summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-25 23:02:12 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-25 23:02:12 +0200
commitd76221c7d33c5fac0760d08d8bc3cc00658eeb59 (patch)
treedc117e309a3393a10cc22b8c8cf9212359503c22 /src
parentdf0b2a73076d9168698413d1322d680420d38016 (diff)
downloadrspamd-d76221c7d33c5fac0760d08d8bc3cc00658eeb59.tar.gz
rspamd-d76221c7d33c5fac0760d08d8bc3cc00658eeb59.zip
[Minor] Fix logger.debugm
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_logger.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_logger.c b/src/lua/lua_logger.c
index 96ae39039..8c5341096 100644
--- a/src/lua/lua_logger.c
+++ b/src/lua/lua_logger.c
@@ -471,7 +471,7 @@ lua_logger_get_id (lua_State *L, gint pos)
clsname = lua_tostring (L, -1);
if (strcmp (clsname, "rspamd{task}") == 0) {
- struct rspamd_task *task = lua_check_task (L, 1);
+ struct rspamd_task *task = lua_check_task (L, pos);
if (task) {
uid = task->task_pool->tag.uid;
@@ -480,7 +480,7 @@ lua_logger_get_id (lua_State *L, gint pos)
else if (strcmp (clsname, "rspamd{mempool}") == 0) {
rspamd_mempool_t *pool;
- pool = rspamd_lua_check_mempool (L, 1);
+ pool = rspamd_lua_check_mempool (L, pos);
if (pool) {
uid = pool->tag.uid;
@@ -489,7 +489,7 @@ lua_logger_get_id (lua_State *L, gint pos)
else if (strcmp (clsname, "rspamd{config}") == 0) {
struct rspamd_config *cfg;
- cfg = lua_check_config (L, 1);
+ cfg = lua_check_config (L, pos);
if (cfg) {
uid = cfg->checksum;
@@ -498,7 +498,7 @@ lua_logger_get_id (lua_State *L, gint pos)
else if (strcmp (clsname, "rspamd{map}") == 0) {
struct rspamd_lua_map *map;
- map = lua_check_map (L, 1);
+ map = lua_check_map (L, pos);
if (map) {
if (map->map) {