summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-17 16:59:20 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-17 16:59:20 +0300
commit32dbe5634cc672278f740039becdc330e928e96b (patch)
treeb800b7ebfee48ebc40ed605ba6e2989fe4d255ea /src/lua/lua_common.c
parent0954ea88937b1051c70fdae95b8955323c5d96cf (diff)
downloadrspamd-32dbe5634cc672278f740039becdc330e928e96b.tar.gz
rspamd-32dbe5634cc672278f740039becdc330e928e96b.zip
Fix rspamd_logger.
Diffstat (limited to 'src/lua/lua_common.c')
-rw-r--r--src/lua/lua_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c
index 14bd6877a..bfe60c4da 100644
--- a/src/lua/lua_common.c
+++ b/src/lua/lua_common.c
@@ -155,7 +155,7 @@ static gint
lua_logger_err (lua_State * L)
{
const gchar *msg;
- msg = luaL_checkstring (L, 2);
+ msg = luaL_checkstring (L, 1);
lua_common_log (G_LOG_LEVEL_CRITICAL, L, msg);
return 1;
}
@@ -164,7 +164,7 @@ static gint
lua_logger_warn (lua_State * L)
{
const gchar *msg;
- msg = luaL_checkstring (L, 2);
+ msg = luaL_checkstring (L, 1);
lua_common_log (G_LOG_LEVEL_WARNING, L, msg);
return 1;
}
@@ -173,7 +173,7 @@ static gint
lua_logger_info (lua_State * L)
{
const gchar *msg;
- msg = luaL_checkstring (L, 2);
+ msg = luaL_checkstring (L, 1);
lua_common_log (G_LOG_LEVEL_INFO, L, msg);
return 1;
}
@@ -182,7 +182,7 @@ static gint
lua_logger_debug (lua_State * L)
{
const gchar *msg;
- msg = luaL_checkstring (L, 2);
+ msg = luaL_checkstring (L, 1);
lua_common_log (G_LOG_LEVEL_DEBUG, L, msg);
return 1;
}