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

Function logging_options_parsed

lightningd/log.c:754–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752}
753
754void logging_options_parsed(struct log_book *lr)
755{
756 /* If they didn't set an explicit level, set to info */
757 if (!lr->default_print_level) {
758 lr->default_print_level = tal(lr, enum log_level);
759 *lr->default_print_level = DEFAULT_LOGLEVEL;
760 }
761
762 /* Catch up, since before we were only printing BROKEN msgs */
763 for (size_t i = 0; i < lr->num_entries; i++) {
764 const struct log_entry *l = &lr->log[i];
765
766 if (l->level >= filter_level(lr, l->prefix, NULL))
767 log_to_files(lr->prefix, l->prefix->prefix, l->level,
768 l->nc ? &l->nc->node_id : NULL,
769 &l->time, l->log,
770 l->io, tal_bytelen(l->io),
771 lr->print_timestamps,
772 lr->outfiles);
773 }
774}
775
776void log_backtrace_print(const char *fmt, ...)
777{

Callers 1

handle_early_optsFunction · 0.85

Calls 3

filter_levelFunction · 0.85
log_to_filesFunction · 0.85
tal_bytelenFunction · 0.85

Tested by

no test coverage detected