mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: add pipewire-pulse:log-level message
Add a /core message to set the log level of the pulse-server. An alternative would be to watch the settings metadata and follow the server settings. This is however less flexible so the custom message was chosen.
This commit is contained in:
parent
a3c6b3acae
commit
370bf7206b
1 changed files with 3 additions and 0 deletions
|
|
@ -114,6 +114,9 @@ static int core_object_message_handler(struct client *client, struct pw_manager_
|
|||
int res = malloc_trim(0);
|
||||
fprintf(response, "%d", res);
|
||||
#endif
|
||||
} else if (spa_streq(message, "pipewire-pulse:log-level")) {
|
||||
int res = pw_log_set_level_string(params);
|
||||
fprintf(response, "%d", res);
|
||||
} else {
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue