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

Function log_print_level

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

Source from the content-addressed store, hash-verified

338}
339
340enum log_level log_print_level(struct log *log, const struct node_id *node_id)
341{
342 if (!log->print_level) {
343 /* Not set globally yet? Print UNUSUAL / BROKEN messages only */
344 if (!log->lr->default_print_level)
345 return LOG_UNUSUAL;
346 log->print_level = tal(log, enum log_level);
347 *log->print_level = filter_level(log->lr, log->prefix, node_id);
348 }
349 return *log->print_level;
350}
351
352
353/* This may move entry! */

Callers 3

new_subdFunction · 0.70
maybe_printFunction · 0.70
log_ioFunction · 0.70

Calls 1

filter_levelFunction · 0.85

Tested by

no test coverage detected