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

Function show_log_level

lightningd/log.c:614–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612}
613
614static void show_log_level(char buf[OPT_SHOW_LEN], const struct log *log)
615{
616 enum log_level l;
617
618 if (log->lr->default_print_level)
619 l = *log->lr->default_print_level;
620 else
621 l = DEFAULT_LOGLEVEL;
622 strncpy(buf, log_level_name(l), OPT_SHOW_LEN - 1);
623 buf[OPT_SHOW_LEN - 1] = '\0';
624}
625
626static char *arg_log_prefix(const char *arg, struct log_book *log_book)
627{

Callers

nothing calls this directly

Calls 1

log_level_nameFunction · 0.50

Tested by

no test coverage detected