diff --git a/src/scripting.c b/src/scripting.c index 140799b093cb0f756b5395e8b215397de1321c7f..46c0de9a23a2799b905520e9fa0ca8438448a74a 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -220,8 +220,11 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) { * To make this function reentrant is futile and makes it slower, but * we should at least detect such a misuse, and abort. */ if (inuse) { - luaPushError(lua, - "luaRedisGenericCommand() recursive call detected. Are you doing funny stuff with Lua debug hooks?"); + char *recursion_warning = + "luaRedisGenericCommand() recursive call detected. " + "Are you doing funny stuff with Lua debug hooks?"; + redisLog(REDIS_WARNING,"%s",recursion_warning); + luaPushError(lua,recursion_warning); return 1; } inuse++;