MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / ldbLogRedisReply

Function ldbLogRedisReply

src/scripting.cpp:2471–2475  ·  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

2469 * If the resulting string is longer than 'len' plus a few more chars
2470 * used as prefix, it gets truncated. */
2471void ldbLogRedisReply(char *reply) {
2472 sds log = sdsnew("<reply> ");
2473 ldbRedisProtocolToHuman(&log,reply);
2474 ldbLogWithMaxLen(log);
2475}
2476
2477/* Implements the "print <var>" command of the Lua debugger. It scans for Lua
2478 * 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