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

Function _serverLog

app/redis-6.2.6/src/server.c:1174–1183  ·  view source on GitHub ↗

Like serverLogRaw() but with printf-alike support. This is the function that * is used across the code. The raw version is only used in order to dump * the INFO output on crash. */

Source from the content-addressed store, hash-verified

1172 * is used across the code. The raw version is only used in order to dump
1173 * the INFO output on crash. */
1174void _serverLog(int level, const char *fmt, ...) {
1175 va_list ap;
1176 char msg[LOG_MAX_LEN];
1177
1178 va_start(ap, fmt);
1179 vsnprintf(msg, sizeof(msg), fmt, ap);
1180 va_end(ap);
1181
1182 serverLogRaw(level,msg);
1183}
1184
1185/* Log a fixed message without printf-alike capabilities, in a way that is
1186 * safe to call from a signal handler.

Callers

nothing calls this directly

Calls 2

vsnprintfFunction · 0.85
serverLogRawFunction · 0.85

Tested by

no test coverage detected