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

Function opt_set_level

cli/lightning-cli.c:587–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585}
586
587static char *opt_set_level(const char *arg, enum log_level *level)
588{
589 if (streq(arg, "none"))
590 *level = LOG_LEVEL_MAX + 1;
591 else if (!log_level_parse(arg, strlen(arg), level))
592 return "Invalid level";
593 return NULL;
594}
595
596static void opt_show_level(char buf[OPT_SHOW_LEN], const enum log_level *level)
597{

Callers

nothing calls this directly

Calls 1

log_level_parseFunction · 0.50

Tested by

no test coverage detected