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. */
| 1172 | * is used across the code. The raw version is only used in order to dump |
| 1173 | * the INFO output on crash. */ |
| 1174 | void _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. |
nothing calls this directly
no test coverage detected