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

Function param_loglevel

lightningd/log.c:948–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946}
947
948struct 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
963static struct command_result *json_getlog(struct command *cmd,
964 const char *buffer,

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.85
log_level_parseFunction · 0.50

Tested by

no test coverage detected