improve debug

Improve log so that debug level 3 gives a reasonably readable overview
of what is going on.
This commit is contained in:
Wim Taymans 2020-04-22 12:47:18 +02:00
parent 8ab67c5fa0
commit aafd1e7298
33 changed files with 141 additions and 125 deletions

View file

@ -841,7 +841,7 @@ static int port_set_format(struct impl *this, struct port *port,
int err;
if (format == NULL) {
spa_log_info(this->log, "clear format");
spa_log_debug(this->log, "clear format");
clear_buffers(this, port);
port->have_format = false;
} else {
@ -919,7 +919,7 @@ impl_node_port_use_buffers(void *object,
spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL);
port = &this->port;
spa_log_info(this->log, "use buffers %d", n_buffers);
spa_log_debug(this->log, "use buffers %d", n_buffers);
if (!port->have_format)
return -EIO;