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

Function json_add_opt_log_levels

lightningd/log.c:604–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604void json_add_opt_log_levels(struct json_stream *response, struct log *log)
605{
606 struct print_filter *i;
607
608 list_for_each(&log->lr->print_filters, i, list) {
609 json_add_str_fmt(response, "log-level", "%s:%s",
610 log_level_name(i->level), i->prefix);
611 }
612}
613
614static void show_log_level(char buf[OPT_SHOW_LEN], const struct log *log)
615{

Callers 1

add_configFunction · 0.85

Calls 2

json_add_str_fmtFunction · 0.50
log_level_nameFunction · 0.50

Tested by

no test coverage detected