1
Fork 0

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:
Wim Taymans 2024-01-04 17:43:53 +01:00
parent a3c6b3acae
commit 370bf7206b
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}