mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
Silence warning on duplicate plugin load
a debug is enough, it may happen on normal use
This commit is contained in:
parent
db34c9a848
commit
e0abb9aa24
@ -33,7 +33,10 @@ let load_file f =
|
||||
try
|
||||
Dynlink.loadfile f;
|
||||
Message.emit_debug "Plugin %S loaded" f
|
||||
with e ->
|
||||
with
|
||||
| Dynlink.Error (Dynlink.Module_already_loaded s) ->
|
||||
Message.emit_debug "Plugin %S (%s) was already loaded, skipping" f s
|
||||
| e ->
|
||||
Message.emit_warning "Could not load plugin %S: %s" f (Printexc.to_string e)
|
||||
|
||||
let rec load_dir d =
|
||||
|
Loading…
Reference in New Issue
Block a user