Silence warning on duplicate plugin load

a debug is enough, it may happen on normal use
This commit is contained in:
Louis Gesbert 2023-07-11 18:36:41 +02:00
parent db34c9a848
commit e0abb9aa24

View File

@ -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 =