mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
make some errors into debug
With the debug and return value we can delay writing error messages in the log until we really need to.
This commit is contained in:
parent
55bef12cda
commit
e32a7a8d65
4 changed files with 17 additions and 20 deletions
|
|
@ -164,7 +164,7 @@ error_properties:
|
|||
"usage: "FACTORY_USAGE);
|
||||
goto error_exit;
|
||||
error_device:
|
||||
pw_log_error("can't create device: %s", spa_strerror(res));
|
||||
pw_log_debug("can't create device: %s", spa_strerror(res));
|
||||
if (resource)
|
||||
pw_resource_errorf_id(resource, new_id, res,
|
||||
"can't create device: %s", spa_strerror(res));
|
||||
|
|
|
|||
|
|
@ -141,15 +141,15 @@ struct pw_impl_device *pw_spa_device_load(struct pw_context *context,
|
|||
|
||||
error_load:
|
||||
res = -errno;
|
||||
pw_log_error("can't load device handle: %m");
|
||||
pw_log_debug("can't load device handle: %m");
|
||||
goto error_exit;
|
||||
error_interface:
|
||||
pw_log_error("can't get device interface %d", res);
|
||||
pw_log_debug("can't get device interface %d", res);
|
||||
goto error_exit_unload;
|
||||
error_device:
|
||||
properties = NULL;
|
||||
res = -errno;
|
||||
pw_log_error("can't create device: %m");
|
||||
pw_log_debug("can't create device: %m");
|
||||
goto error_exit_unload;
|
||||
|
||||
error_exit_unload:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue