Skip to content

Commit

Permalink
Log initialization: respect custom log levels
Browse files Browse the repository at this point in the history
Fixes #299.
  • Loading branch information
aantron committed Nov 6, 2023
1 parent 1c60e60 commit 9c72a39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/log.ml
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,9 @@ struct
if !enable then begin
setup_outputs () ;
Logs.set_level ~all:true (Some !level);
!custom_log_levels |> List.iter (fun (name, level) ->
List.assoc_opt name !sources
|> Option.iter (fun source -> Logs.Src.set_level source (Some level)));
Logs.set_reporter (reporter ~now ())
end ;
`Initialized
Expand Down

0 comments on commit 9c72a39

Please sign in to comment.