| 1203 | } |
| 1204 | |
| 1205 | struct command_result *param_loglevel(struct command *cmd, |
| 1206 | const char *name, |
| 1207 | const char *buffer, |
| 1208 | const jsmntok_t *tok, |
| 1209 | enum log_level **level) |
| 1210 | { |
| 1211 | *level = tal(cmd, enum log_level); |
| 1212 | if (log_level_parse(buffer + tok->start, tok->end - tok->start, *level)) |
| 1213 | return NULL; |
| 1214 | |
| 1215 | return command_fail_badparam(cmd, name, buffer, tok, |
| 1216 | "should be 'io', 'debug', 'info', or " |
| 1217 | "'unusual'"); |
| 1218 | } |
| 1219 | |
| 1220 | static struct command_result *json_getlog(struct command *cmd, |
| 1221 | const char *buffer, |
nothing calls this directly
no test coverage detected