impl-module: turn warning into info

Errors while loading a module does not have to be fatal, it depends on
the config flags. Turn an error into info and log an error only
when needed.
This commit is contained in:
Wim Taymans 2022-11-15 09:41:48 +01:00
parent 525e7aa734
commit 88dec1d378

View file

@ -278,10 +278,10 @@ pw_context_load_module(struct pw_context *context,
error_not_found: error_not_found:
res = -ENOENT; res = -ENOENT;
pw_log_error("No module \"%s\" was found", name); pw_log_info("No module \"%s\" was found", name);
goto error_cleanup; goto error_cleanup;
error_open_failed: error_open_failed:
res = -ENOENT; res = -EIO;
pw_log_error("Failed to open module: \"%s\" %s", filename, dlerror()); pw_log_error("Failed to open module: \"%s\" %s", filename, dlerror());
goto error_free_filename; goto error_free_filename;
error_no_pw_module: error_no_pw_module: