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

Function ldbLogRedisReply

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

Log a Redis reply as debugger output, in a human readable format. * If the resulting string is longer than 'len' plus a few more chars * used as prefix, it gets truncated. */

Source from the content-addressed store, hash-verified

2446 * If the resulting string is longer than 'len' plus a few more chars
2447 * used as prefix, it gets truncated. */
2448void ldbLogRedisReply(char *reply) {
2449 sds log = sdsnew("<reply> ");
2450 ldbRedisProtocolToHuman(&log,reply);
2451 ldbLogWithMaxLen(log);
2452}
2453
2454/* Implements the "print <var>" command of the Lua debugger. It scans for Lua
2455 * var "varname" starting from the current stack frame up to the top stack

Callers 2

luaRedisGenericCommandFunction · 0.85
ldbRedisFunction · 0.85

Calls 3

sdsnewFunction · 0.85
ldbRedisProtocolToHumanFunction · 0.85
ldbLogWithMaxLenFunction · 0.85

Tested by

no test coverage detected