Commit c9743186 authored by Wim Taymans's avatar Wim Taymans
Browse files

pipewire: disable colors when NO_COLOR is set

parent da5c43fb
Pipeline #283574 passed with stages
in 1 minute and 8 seconds
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment