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

Function param_loglevel

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

Source from the content-addressed store, hash-verified

1216}
1217
1218struct 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

Callers 1

param_getloglevelFunction · 0.70

Calls 2

log_level_parseFunction · 0.85
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected