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

Function opt_set_level

cli/lightning-cli.c:579–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577}
578
579static char *opt_set_level(const char *arg, enum log_level *level)
580{
581 if (streq(arg, "none"))
582 *level = LOG_LEVEL_MAX + 1;
583 else if (!log_level_parse(arg, strlen(arg), level))
584 return "Invalid level";
585 return NULL;
586}
587
588static bool opt_show_level(char *buf, size_t len, const enum log_level *level)
589{

Callers

nothing calls this directly

Calls 1

log_level_parseFunction · 0.85

Tested by

no test coverage detected