MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaRedisDebugCommand

Function luaRedisDebugCommand

app/redis-6.2.6/src/scripting.c:948–958  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

946 * Can take multiple arguments that will be separated by commas.
947 * Nothing is returned to the caller. */
948int 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 *

Callers

nothing calls this directly

Calls 6

sdscatprintfFunction · 0.85
sdsemptyFunction · 0.85
ldbCatStackValueFunction · 0.85
sdscatlenFunction · 0.85
ldbLogFunction · 0.85
lua_gettopFunction · 0.50

Tested by

no test coverage detected