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

Function opt_show_level

cli/lightning-cli.c:588–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588static bool opt_show_level(char *buf, size_t len, const enum log_level *level)
589{
590 if (*level == LOG_LEVEL_MAX + 1)
591 strncpy(buf, "none", len);
592 else
593 strncpy(buf, log_level_name(*level), len);
594 return true;
595}
596
597/* The standard opt_log_stderr_exit exits with status 1 */
598static void opt_log_stderr_exit_usage(const char *fmt, ...)

Callers

nothing calls this directly

Calls 1

log_level_nameFunction · 0.85

Tested by

no test coverage detected