aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_logger.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-12 14:09:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-12 14:47:15 +0100
commit05658991f0c220893226798b0e1285f946e02b71 (patch)
tree56e83eefd3f6dfa65a109001c7c361df840dcf7e /src/lua/lua_logger.c
parentec8d3d1daa03ac410e4daacf19a0563b5e99f52d (diff)
downloadrspamd-05658991f0c220893226798b0e1285f946e02b71.tar.gz
rspamd-05658991f0c220893226798b0e1285f946e02b71.zip
[Fix] Fix tables logging
Diffstat (limited to 'src/lua/lua_logger.c')
-rw-r--r--src/lua/lua_logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_logger.c b/src/lua/lua_logger.c
index 2378ea59b..f112b4dfc 100644
--- a/src/lua/lua_logger.c
+++ b/src/lua/lua_logger.c
@@ -405,7 +405,7 @@ lua_logger_out_table (lua_State *L, gint pos, gchar *outbuf, gsize len)
r = rspamd_snprintf (d, remain + 1, "[%d] = ", i);
MOVE_BUF(d, remain, r);
- r = lua_logger_out_type (L, -1, d, remain);
+ r = lua_logger_out_type (L, lua_gettop (L), d, remain);
MOVE_BUF(d, remain, r);
first = FALSE;