mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-22 06:59:59 -05:00
log: add option to disable line numbers
This commit is contained in:
parent
b69bdc1eff
commit
93211549a4
3 changed files with 22 additions and 12 deletions
|
|
@ -356,7 +356,7 @@ SPA_EXPORT
|
|||
void pw_init(int *argc, char **argv[])
|
||||
{
|
||||
const char *str;
|
||||
struct spa_dict_item items[4];
|
||||
struct spa_dict_item items[5];
|
||||
uint32_t n_items;
|
||||
struct spa_dict info;
|
||||
struct support *support = &global_support;
|
||||
|
|
@ -385,6 +385,7 @@ void pw_init(int *argc, char **argv[])
|
|||
n_items = 0;
|
||||
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);
|
||||
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_LOG_LEVEL, level);
|
||||
if ((str = getenv("PIPEWIRE_LOG")) != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue