| 861 | } |
| 862 | |
| 863 | void json_add_opt_log_levels(struct json_stream *response, struct log_book *log_book) |
| 864 | { |
| 865 | struct print_filter *i; |
| 866 | |
| 867 | list_for_each(&log_book->print_filters, i, list) { |
| 868 | json_add_str_fmt(response, "log-level", "%s:%s", |
| 869 | log_level_name(i->level), i->prefix); |
| 870 | } |
| 871 | } |
| 872 | |
| 873 | static bool show_log_level(char *buf, size_t len, const struct log_book *log_book) |
| 874 | { |
nothing calls this directly
no test coverage detected