mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
improve error messages
Log an error when we send an error to the client so that we don't need to log and error anymore. Improve the error messages when we can Move some warnings and errors to debug
This commit is contained in:
parent
ee617682c3
commit
b33bd68bac
12 changed files with 56 additions and 62 deletions
|
|
@ -118,7 +118,7 @@ uint32_t pw_protocol_native_connection_add_fd(struct pw_protocol_native_connecti
|
|||
|
||||
index = buf->msg.n_fds;
|
||||
if (index + buf->n_fds >= MAX_FDS) {
|
||||
pw_log_error("connection %p: too many fds", conn);
|
||||
pw_log_error("connection %p: too many fds (%d)", conn, MAX_FDS);
|
||||
return SPA_IDX_INVALID;
|
||||
}
|
||||
|
||||
|
|
@ -204,7 +204,7 @@ static int refill_buffer(struct pw_protocol_native_connection *conn, struct buff
|
|||
|
||||
/* ERRORS */
|
||||
recv_error:
|
||||
pw_log_error("could not recvmsg on fd:%d: %s", conn->fd, strerror(errno));
|
||||
pw_log_error("connection %p: could not recvmsg on fd:%d: %m", conn, conn->fd);
|
||||
return -errno;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -648,7 +648,7 @@ static int core_method_demarshal_destroy(void *object, const struct pw_protocol_
|
|||
return pw_resource_notify(resource, struct pw_core_methods, destroy, 0, r);
|
||||
|
||||
no_resource:
|
||||
pw_log_error("client %p: unknown resouce %u op:%u", client, id, msg->opcode);
|
||||
pw_log_debug("client %p: unknown resouce %u op:%u", client, id, msg->opcode);
|
||||
pw_resource_errorf(resource, -EINVAL, "unknown resource %d op:%u", id, msg->opcode);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue