From 88dec1d3787e96c77e415d28873ba7c8c5de95c9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 15 Nov 2022 09:41:48 +0100 Subject: [PATCH] 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. --- src/pipewire/impl-module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipewire/impl-module.c b/src/pipewire/impl-module.c index 09bf655c8..282ba081b 100644 --- a/src/pipewire/impl-module.c +++ b/src/pipewire/impl-module.c @@ -278,10 +278,10 @@ pw_context_load_module(struct pw_context *context, error_not_found: res = -ENOENT; - pw_log_error("No module \"%s\" was found", name); + pw_log_info("No module \"%s\" was found", name); goto error_cleanup; error_open_failed: - res = -ENOENT; + res = -EIO; pw_log_error("Failed to open module: \"%s\" %s", filename, dlerror()); goto error_free_filename; error_no_pw_module: