mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-13 13:30:05 -05:00
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:
parent
525e7aa734
commit
88dec1d378
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue