Skip to content
Snippets Groups Projects
Commit 310d0f84 authored by Thibault Martin's avatar Thibault Martin Committed by Andre Maroneze
Browse files

[log] Add description for all "*" categories

parent 3a05a5fe
No related branches found
No related tags found
No related merge requests found
......@@ -888,8 +888,11 @@ struct
type warn_category = string
let categories = ref Category_trie.empty
let categories_help : ((string, string) Hashtbl.t) = Hashtbl.create 5
let () = Hashtbl.add categories_help "*" "All categories"
let register_category ?(help="No description provided") (s:string) =
let l = split_category s in
categories := Category_trie.add_structure l !categories;
......@@ -949,8 +952,11 @@ struct
| Some c -> is_debug_key_enabled c
let warn_categories = ref Category_trie.empty
let warn_categories_help : ((string, string) Hashtbl.t) = Hashtbl.create 5
let () = Hashtbl.add warn_categories_help "*" "All warning categories"
let register_warn_category ?(help="No description provided") s =
let l = split_category s in
warn_categories := Category_trie.add_structure l !warn_categories;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment