mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
Messages: ensure disabled messages aren't computed
This commit is contained in:
parent
396ea03ff9
commit
19672d2305
@ -352,6 +352,12 @@ let make
|
||||
?(suggestion = [])
|
||||
~cont
|
||||
~level =
|
||||
match level with
|
||||
| Debug when not Global.options.debug ->
|
||||
Format.ikfprintf (fun _ -> cont [] level) (Lazy.force ignore_ppf)
|
||||
| Warning when Global.options.disable_warnings ->
|
||||
Format.ikfprintf (fun _ -> cont [] level) (Lazy.force ignore_ppf)
|
||||
| _ ->
|
||||
Format.kdprintf
|
||||
@@ fun message ->
|
||||
let t =
|
||||
|
Loading…
Reference in New Issue
Block a user