diff --git a/src/daemon/command.c b/src/daemon/command.c index b567f1de2..9a6232b8f 100644 --- a/src/daemon/command.c +++ b/src/daemon/command.c @@ -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: diff --git a/src/daemon/pipewire.conf.in b/src/daemon/pipewire.conf.in index 574cba4f8..4d2ba37f9 100644 --- a/src/daemon/pipewire.conf.in +++ b/src/daemon/pipewire.conf.in @@ -7,6 +7,7 @@ #set-prop link.max-buffers 64 set-prop link.max-buffers 16 # version < 3 clients can't handle more #set-prop mem.allow-mlock true +#set-prop log.level 2 ## Properties for the DSP configuration #