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

Function _serverLog

src/server.cpp:1254–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1252# endif
1253#endif
1254void _serverLog(int level, const char *fmt, ...) {
1255 va_list ap;
1256 char msg[LOG_MAX_LEN];
1257
1258 va_start(ap, fmt);
1259 vsnprintf(msg, sizeof(msg), fmt, ap);
1260 va_end(ap);
1261
1262 serverLogRaw(level,msg);
1263}
1264
1265/* Log a fixed message without printf-alike capabilities, in a way that is
1266 * safe to call from a signal handler.

Callers

nothing calls this directly

Calls 1

serverLogRawFunction · 0.85

Tested by

no test coverage detected