mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
command: add log.level property
Support setting the log level from the config file.
This commit is contained in:
parent
3712ebc434
commit
97c8e674ac
2 changed files with 6 additions and 0 deletions
|
|
@ -126,6 +126,11 @@ static struct pw_command *parse_command_set_prop(struct pw_properties *propertie
|
|||
pw_log_debug("set property: '%s' = '%s'", this->args[1], this->args[2]);
|
||||
pw_properties_set(properties, this->args[1], this->args[2]);
|
||||
|
||||
if (strcmp(this->args[1], SPA_KEY_LOG_LEVEL) == 0) {
|
||||
pw_log_set_level(atoi(this->args[2]));
|
||||
setenv("PIPEWIRE_DEBUG", this->args[2], 1);
|
||||
}
|
||||
|
||||
return this;
|
||||
|
||||
error_arguments:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue