redis.debug() * * Log a string message into the output console. * Can take multiple arguments that will be separated by commas. * Nothing is returned to the caller. */
| 946 | * Can take multiple arguments that will be separated by commas. |
| 947 | * Nothing is returned to the caller. */ |
| 948 | int luaRedisDebugCommand(lua_State *lua) { |
| 949 | if (!ldb.active) return 0; |
| 950 | int argc = lua_gettop(lua); |
| 951 | sds log = sdscatprintf(sdsempty(),"<debug> line %d: ", ldb.currentline); |
| 952 | while(argc--) { |
| 953 | log = ldbCatStackValue(log,lua,-1 - argc); |
| 954 | if (argc != 0) log = sdscatlen(log,", ",2); |
| 955 | } |
| 956 | ldbLog(log); |
| 957 | return 0; |
| 958 | } |
| 959 | |
| 960 | /* redis.set_repl() |
| 961 | * |
nothing calls this directly
no test coverage detected