| 813 | } |
| 814 | |
| 815 | static struct log_file *find_log_file(struct log_book *log_book, |
| 816 | const char *fname) |
| 817 | { |
| 818 | assert(tal_count(log_book->log_files) |
| 819 | == tal_count(log_book->ld->logfiles)); |
| 820 | for (size_t i = 0; i < tal_count(log_book->log_files); i++) { |
| 821 | if (streq(log_book->ld->logfiles[i], fname)) |
| 822 | return log_book->log_files[i]; |
| 823 | } |
| 824 | return NULL; |
| 825 | } |
| 826 | |
| 827 | char *opt_log_level(const char *arg, struct log_book *log_book) |
| 828 | { |