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

Function filter_level

lightningd/log.c:326–340  ·  view source on GitHub ↗

What do these filters say about level to log this entry at? */

Source from the content-addressed store, hash-verified

324
325/* What do these filters say about level to log this entry at? */
326static bool filter_level(const struct list_head *print_filters,
327 const char *prefix,
328 const char *node_id_str,
329 enum log_level *level)
330{
331 struct print_filter *i;
332
333 list_for_each(print_filters, i, list) {
334 if (strstr(prefix, i->prefix) || strstr(node_id_str, i->prefix)) {
335 *level = i->level;
336 return true;
337 }
338 }
339 return false;
340}
341
342/* What's the lowest filtering which could possibly apply? */
343static void lowest_filter(const struct list_head *print_filters,

Callers 1

log_to_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected