MCPcopy Create free account
hub / github.com/ElementsProject/lightning / param_loglevel

Function param_loglevel

lightningd/log.c:1205–1218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1203}
1204
1205struct 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
1220static struct command_result *json_getlog(struct command *cmd,
1221 const char *buffer,

Callers

nothing calls this directly

Calls 2

log_level_parseFunction · 0.85
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected