mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
improve some errors
Silence some -ENOENT warnings, they can happen when the object we are introspecting is destroyed
This commit is contained in:
parent
a1259a75be
commit
b8300c663b
9 changed files with 18 additions and 12 deletions
|
|
@ -415,7 +415,8 @@ static int reply_error(struct client *client, uint32_t command, uint32_t tag, in
|
|||
else
|
||||
name = "invalid";
|
||||
|
||||
pw_log_warn(NAME" %p: [%s] ERROR command:%d (%s) tag:%u error:%u (%s)",
|
||||
pw_log(res == -ENOENT ? SPA_LOG_LEVEL_INFO : SPA_LOG_LEVEL_WARN,
|
||||
NAME" %p: [%s] ERROR command:%d (%s) tag:%u error:%u (%s)",
|
||||
client, client->name, command, name, tag, error, spa_strerror(res));
|
||||
|
||||
reply = message_alloc(client, -1, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue