From 846dbce7f1534fd8937b7d4e54a9cc28fb965183 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 16 Dec 2022 18:29:19 +0100 Subject: [PATCH] doc: update after PIPEWIRE_DEBUG changes --- doc/pipewire-daemon.dox | 11 +++++------ src/pipewire/pipewire.c | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/doc/pipewire-daemon.dox b/doc/pipewire-daemon.dox index 89e29c21f..c1a06493f 100644 --- a/doc/pipewire-daemon.dox +++ b/doc/pipewire-daemon.dox @@ -133,15 +133,14 @@ Allowed configuration file sections are: # Logging The `PIPEWIRE_DEBUG` environment variable can be used to enable -more debugging. This variable supports one of two formats: +more debugging. This variable supports the following format: -- `PIPEWIRE_DEBUG=` where `` is either a numerical log level or its - respective key, see below. -- `PIPEWIRE_DEBUG=:,:,...` where the globs are +- `PIPEWIRE_DEBUG=[][,:][,:,...]` where the globs are shell globs to match on log topics and the levels are the respective log level to set for that topic. Globs are applied in order and a matching - glob overrides an earlier glob for that category. For example, - `PIPEWIRE_DEBUG=*:E,mod.*:D,mod.foo:X` enables global error messages, + glob overrides an earlier glob for that category. A level without a glob + prefix will set the global log level and is a more preformant version of + `*:`. For example, `PIPEWIRE_DEBUG=E,mod.*:D,mod.foo:X` enables global error messages, debugging on all modules but no messages on the foo module. - `` specifies the log level: diff --git a/src/pipewire/pipewire.c b/src/pipewire/pipewire.c index cc5610ed8..104b52bab 100644 --- a/src/pipewire/pipewire.c +++ b/src/pipewire/pipewire.c @@ -530,7 +530,7 @@ parse_pw_debug_env(void) if (!str || (slen = strlen(str)) == 0) return NULL; - /* String format is PIPEWIRE_DEBUG=:[,:,...], + /* String format is PIPEWIRE_DEBUG=[:],..., * converted into [{ conn.* = 0}, {glob = level}, {glob = level}, ....] , * with the connection namespace disabled by default. */