| 1216 | } |
| 1217 | |
| 1218 | struct command_result *param_loglevel(struct command *cmd, |
| 1219 | const char *name, |
| 1220 | const char *buffer, |
| 1221 | const jsmntok_t *tok, |
| 1222 | enum log_level **level) |
| 1223 | { |
| 1224 | *level = tal(cmd, enum log_level); |
| 1225 | if (log_level_parse(buffer + tok->start, tok->end - tok->start, *level)) |
| 1226 | return NULL; |
| 1227 | |
| 1228 | return command_fail_badparam(cmd, name, buffer, tok, |
| 1229 | "should be 'io', 'debug', 'info', or " |
| 1230 | "'unusual'"); |
| 1231 | } |
| 1232 | |
| 1233 | /* The io log contains raw JSON-RPC and plugin traffic, which can contain |
| 1234 | * secrets (such as runes), and getlog returns the entire log book: so we |
no test coverage detected