| 602 | } |
| 603 | |
| 604 | void json_add_opt_log_levels(struct json_stream *response, struct log *log) |
| 605 | { |
| 606 | struct print_filter *i; |
| 607 | |
| 608 | list_for_each(&log->lr->print_filters, i, list) { |
| 609 | json_add_str_fmt(response, "log-level", "%s:%s", |
| 610 | log_level_name(i->level), i->prefix); |
| 611 | } |
| 612 | } |
| 613 | |
| 614 | static void show_log_level(char buf[OPT_SHOW_LEN], const struct log *log) |
| 615 | { |
no test coverage detected