| 752 | } |
| 753 | |
| 754 | void 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 | |
| 776 | void log_backtrace_print(const char *fmt, ...) |
| 777 | { |
no test coverage detected