From: Vsevolod Stakhov Date: Tue, 14 Jul 2015 14:23:22 +0000 (+0100) Subject: Minor fixes in lua. X-Git-Tag: 1.0.0~372 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f65d950bd154d44e1705a17d13ec3012a5d0d2c3;p=thirdparty%2Frspamd.git Minor fixes in lua. --- diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 75cc991ce8..3d8c28f940 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -572,7 +572,7 @@ rspamd_lua_call_post_filters (struct rspamd_task *task) *ptask = task; if (lua_pcall (cd->L, 1, 0, 0) != 0) { - msg_info ("call to %s failed: %s", + msg_err ("call to %s failed: %s", cd->cb_is_ref ? "local function" : cd->callback.name, lua_tostring (cd->L, -1)); diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index 4f304643f3..89468d519b 100644 --- a/src/lua/lua_redis.c +++ b/src/lua/lua_redis.c @@ -148,7 +148,7 @@ lua_redis_push_reply (lua_State *L, const redisReply *r) switch (r->type) { case REDIS_REPLY_INTEGER: - lua_pushinteger (L, r->integer); + lua_pushnumber (L, r->integer); break; case REDIS_REPLY_NIL: /* XXX: not the best approach */