diff --git a/src/server/log.ml b/src/server/log.ml index b581fc5b..4718a281 100644 --- a/src/server/log.ml +++ b/src/server/log.ml @@ -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