| 405 | } |
| 406 | |
| 407 | static void maybe_print(struct log *log, const struct log_entry *l) |
| 408 | { |
| 409 | if (l->level >= log_print_level(log, l->nc ? &l->nc->node_id : NULL)) |
| 410 | log_to_files(log->lr->prefix, log->prefix->prefix, l->level, |
| 411 | l->nc ? &l->nc->node_id : NULL, |
| 412 | &l->time, l->log, |
| 413 | l->io, tal_bytelen(l->io), |
| 414 | log->lr->print_timestamps, |
| 415 | log->lr->outfiles); |
| 416 | } |
| 417 | |
| 418 | void logv(struct log *log, enum log_level level, |
| 419 | const struct node_id *node_id, |
no test coverage detected