diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-04 01:44:43 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-04 01:44:43 +0100 |
commit | 7abec68f6dda2c1d4e9c9d1c3fb718fc142c8f33 (patch) | |
tree | 8f73ac011bffdd4f7dbfee7b53ecedf489d6d75e /src | |
parent | 3d6ba1f99d3fdcd972c61e872c1b52767196d668 (diff) | |
download | rspamd-7abec68f6dda2c1d4e9c9d1c3fb718fc142c8f33.tar.gz rspamd-7abec68f6dda2c1d4e9c9d1c3fb718fc142c8f33.zip |
Fix redis invocation.
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_redis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index bd26521d1..661c83079 100644 --- a/src/lua/lua_redis.c +++ b/src/lua/lua_redis.c @@ -295,7 +295,7 @@ lua_redis_make_request (lua_State *L) top, args, NULL); - if (ret) { + if (ret == REDIS_OK) { register_async_event (ud->task->s, lua_redis_fin, ud, @@ -309,7 +309,7 @@ lua_redis_make_request (lua_State *L) event_add (&ud->timeout, &tv); } else { - msg_info ("call to redis failed"); + msg_info ("call to redis failed: %s", ud->ctx->errstr); redisAsyncFree (ud->ctx); luaL_unref (ud->L, LUA_REGISTRYINDEX, ud->cbref); } |