diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-26 15:47:30 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-26 15:47:30 +0400 |
commit | be47db1dd7a15f4c0f43b3230e245fdd525f840b (patch) | |
tree | 341430e15d52b5ea0d18b6a4079e6cacc6e6c6d1 /src | |
parent | 054e575684fe7cc8e4d753b2c460193a21bae6a4 (diff) | |
download | rspamd-be47db1dd7a15f4c0f43b3230e245fdd525f840b.tar.gz rspamd-be47db1dd7a15f4c0f43b3230e245fdd525f840b.zip |
* Fix extracting arguments in lua logger interface
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index 2691a2abe..36ef2a422 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -124,7 +124,7 @@ static int lua_logger_err (lua_State * L) { const char *msg; - msg = luaL_checkstring (L, 1); + msg = luaL_checkstring (L, 2); msg_err (msg); return 1; } @@ -133,7 +133,7 @@ static int lua_logger_warn (lua_State * L) { const char *msg; - msg = luaL_checkstring (L, 1); + msg = luaL_checkstring (L, 2); msg_warn (msg); return 1; } @@ -142,7 +142,7 @@ static int lua_logger_info (lua_State * L) { const char *msg; - msg = luaL_checkstring (L, 1); + msg = luaL_checkstring (L, 2); msg_info (msg); return 1; } @@ -151,7 +151,7 @@ static int lua_logger_debug (lua_State * L) { const char *msg; - msg = luaL_checkstring (L, 1); + msg = luaL_checkstring (L, 2); msg_debug (msg); return 1; } |