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

Function json_add_opt_log_levels

lightningd/log.c:876–884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874}
875
876void json_add_opt_log_levels(struct json_stream *response, struct log_book *log_book)
877{
878 struct print_filter *i;
879
880 list_for_each(&log_book->print_filters, i, list) {
881 json_add_str_fmt(response, "log-level", "%s:%s",
882 log_level_name(i->level), i->prefix);
883 }
884}
885
886static bool show_log_level(char *buf, size_t len, const struct log_book *log_book)
887{

Callers

nothing calls this directly

Calls 2

json_add_str_fmtFunction · 0.85
log_level_nameFunction · 0.85

Tested by

no test coverage detected