]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Minor fixes in lua.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Jul 2015 14:23:22 +0000 (15:23 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Jul 2015 14:23:22 +0000 (15:23 +0100)
src/lua/lua_config.c
src/lua/lua_redis.c

index 75cc991ce8b076d7231372edc12a3e536a7b3540..3d8c28f9409c40a047292a08c6b5f571e0f3a524 100644 (file)
@@ -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));
index 4f304643f357ffa2cb29afeff87ea3c9cd017130..89468d519bec3d106d26309d201e2fd535de7752 100644 (file)
@@ -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 */