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

Function json_add_opt_log_levels

lightningd/log.c:863–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861}
862
863void json_add_opt_log_levels(struct json_stream *response, struct log_book *log_book)
864{
865 struct print_filter *i;
866
867 list_for_each(&log_book->print_filters, i, list) {
868 json_add_str_fmt(response, "log-level", "%s:%s",
869 log_level_name(i->level), i->prefix);
870 }
871}
872
873static bool show_log_level(char *buf, size_t len, const struct log_book *log_book)
874{

Callers

nothing calls this directly

Calls 2

json_add_str_fmtFunction · 0.85
log_level_nameFunction · 0.85

Tested by

no test coverage detected