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
|
@ -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…
Reference in New Issue