| 611 | } |
| 612 | |
| 613 | static void maybe_notify_log(struct logger *log, |
| 614 | const struct log_hdr *l, |
| 615 | const char *logmsg) |
| 616 | { |
| 617 | if (l->level >= log->print_level) |
| 618 | notify_log(log->log_book->ld, |
| 619 | l->level, |
| 620 | l->time, |
| 621 | l->prefix->prefix, |
| 622 | logmsg); |
| 623 | } |
| 624 | |
| 625 | static void init_log_hdr(const struct logger *log, |
| 626 | struct log_hdr *l, |