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

Function logServerInfo

src/debug.cpp:1803–1813  ·  view source on GitHub ↗

Log global server info */

Source from the content-addressed store, hash-verified

1801
1802/* Log global server info */
1803void logServerInfo(void) {
1804 sds infostring, clients;
1805 serverLogRaw(LL_WARNING|LL_RAW, "\n------ INFO OUTPUT ------\n");
1806 infostring = genRedisInfoString("all");
1807 serverLogRaw(LL_WARNING|LL_RAW, infostring);
1808 serverLogRaw(LL_WARNING|LL_RAW, "\n------ CLIENT LIST OUTPUT ------\n");
1809 clients = getAllClientsInfoString(-1);
1810 serverLogRaw(LL_WARNING|LL_RAW, clients);
1811 sdsfree(infostring);
1812 sdsfree(clients);
1813}
1814
1815/* Log modules info. Something we wanna do last since we fear it may crash. */
1816void logModulesInfo(void) {

Callers 1

printCrashReportFunction · 0.85

Calls 4

serverLogRawFunction · 0.85
genRedisInfoStringFunction · 0.85
getAllClientsInfoStringFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected