mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pipewire: disable colors when NO_COLOR is set
See no-color.org
This commit is contained in:
parent
da5c43fb33
commit
c974318686
1 changed files with 2 additions and 1 deletions
|
|
@ -426,6 +426,7 @@ void pw_init(int *argc, char **argv[])
|
|||
|
||||
if (pw_log_is_default()) {
|
||||
n_items = 0;
|
||||
if (getenv("NO_COLOR") == NULL)
|
||||
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_LOG_COLORS, "true");
|
||||
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_LOG_TIMESTAMP, "true");
|
||||
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_LOG_LINE, "true");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue