| 946 | } |
| 947 | |
| 948 | struct command_result *param_loglevel(struct command *cmd, |
| 949 | const char *name, |
| 950 | const char *buffer, |
| 951 | const jsmntok_t *tok, |
| 952 | enum log_level **level) |
| 953 | { |
| 954 | *level = tal(cmd, enum log_level); |
| 955 | if (log_level_parse(buffer + tok->start, tok->end - tok->start, *level)) |
| 956 | return NULL; |
| 957 | |
| 958 | return command_fail_badparam(cmd, name, buffer, tok, |
| 959 | "should be 'io', 'debug', 'info', or " |
| 960 | "'unusual'"); |
| 961 | } |
| 962 | |
| 963 | static struct command_result *json_getlog(struct command *cmd, |
| 964 | const char *buffer, |
nothing calls this directly
no test coverage detected