Log global server info */
| 1801 | |
| 1802 | /* Log global server info */ |
| 1803 | void 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. */ |
| 1816 | void logModulesInfo(void) { |
no test coverage detected