| 24 | } |
| 25 | |
| 26 | static void logCommands(void) { |
| 27 | // #readers + #writers + Redis main thread |
| 28 | uint32_t n = ThreadPools_ThreadCount() + 1; |
| 29 | CommandCtx* commands[n]; |
| 30 | Globals_GetCommandCtxs(commands, &n); |
| 31 | |
| 32 | for(uint32_t i = 0; i < n; i++) { |
| 33 | CommandCtx *cmd = commands[i]; |
| 34 | ASSERT(cmd != NULL); |
| 35 | |
| 36 | RedisModule_Log(NULL, "warning", "%s %s", cmd->command_name, |
| 37 | cmd->query); |
| 38 | |
| 39 | CommandCtx_Free(cmd); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | void InfoFunc |
| 44 | ( |
no test coverage detected