mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -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,7 +426,8 @@ void pw_init(int *argc, char **argv[])
|
|||
|
||||
if (pw_log_is_default()) {
|
||||
n_items = 0;
|
||||
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_LOG_COLORS, "true");
|
||||
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");
|
||||
snprintf(level, sizeof(level), "%d", pw_log_level);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue