| 874 | } |
| 875 | |
| 876 | void json_add_opt_log_levels(struct json_stream *response, struct log_book *log_book) |
| 877 | { |
| 878 | struct print_filter *i; |
| 879 | |
| 880 | list_for_each(&log_book->print_filters, i, list) { |
| 881 | json_add_str_fmt(response, "log-level", "%s:%s", |
| 882 | log_level_name(i->level), i->prefix); |
| 883 | } |
| 884 | } |
| 885 | |
| 886 | static bool show_log_level(char *buf, size_t len, const struct log_book *log_book) |
| 887 | { |
nothing calls this directly
no test coverage detected