context: use the log.level from the config file

Use log.level from the config file if not otherwise set with
PIPEWIRE_DEBUG env.
Make client log.level = 0 by default to avoid spamming the console
with errors.

Fixes #725
Fixes #769
This commit is contained in:
Wim Taymans 2021-02-19 12:44:03 +01:00
parent 08ea7d5cd6
commit 686524ce40
6 changed files with 9 additions and 4 deletions

View file

@ -663,7 +663,7 @@ static void on_error(void *data, uint32_t id, int seq, int res, const char *mess
{
struct client *client = data;
pw_log_debug(NAME" %p: error id:%u seq:%d res:%d (%s): %s", client,
pw_log_warn(NAME" %p: error id:%u seq:%d res:%d (%s): %s", client,
id, seq, res, spa_strerror(res), message);
if (id == PW_ID_CORE) {