Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
PipeWire
pipewire
Commits
c9743186
Commit
c9743186
authored
Mar 13, 2021
by
Wim Taymans
Browse files
pipewire: disable colors when NO_COLOR is set
See no-color.org
parent
da5c43fb
Pipeline
#283574
passed with stages
in 1 minute and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/pipewire/pipewire.c
View file @
c9743186
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment