mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pw-cli: print pw_core errors
At the moment errors are printed using `pw_log_error()`, however, that does not display them by default because `client.conf` sets `log.level=0`. Use `fprintf()` and always print the errors.
This commit is contained in:
parent
5ecf27681e
commit
58d86cfb5f
1 changed files with 2 additions and 2 deletions
|
|
@ -556,8 +556,8 @@ static void on_core_error(void *_data, uint32_t id, int seq, int res, const char
|
||||||
struct remote_data *rd = _data;
|
struct remote_data *rd = _data;
|
||||||
struct data *data = rd->data;
|
struct data *data = rd->data;
|
||||||
|
|
||||||
pw_log_error("remote %p: error id:%u seq:%d res:%d (%s): %s", rd,
|
fprintf(stderr, "remote %" PRIu32 ": error id:%" PRIu32 " seq:%d res:%d (%s): %s\n",
|
||||||
id, seq, res, spa_strerror(res), message);
|
rd->id, id, seq, res, spa_strerror(res), message);
|
||||||
|
|
||||||
if (id == PW_ID_CORE && res == -EPIPE)
|
if (id == PW_ID_CORE && res == -EPIPE)
|
||||||
program_quit(data);
|
program_quit(data);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue