| 826 | } |
| 827 | |
| 828 | static struct log_file *find_log_file(struct log_book *log_book, |
| 829 | const char *fname) |
| 830 | { |
| 831 | assert(tal_count(log_book->log_files) |
| 832 | == tal_count(log_book->ld->logfiles)); |
| 833 | for (size_t i = 0; i < tal_count(log_book->log_files); i++) { |
| 834 | if (streq(log_book->ld->logfiles[i], fname)) |
| 835 | return log_book->log_files[i]; |
| 836 | } |
| 837 | return NULL; |
| 838 | } |
| 839 | |
| 840 | char *opt_log_level(const char *arg, struct log_book *log_book) |
| 841 | { |