bluez5: avoid log spamming on debug log level, use log level 'warn' on hsphfpd or ofono registering fail instead of 'error'

This commit is contained in:
Huang-Huang Bao 2021-03-15 17:32:20 +08:00 committed by Wim Taymans
parent 374180e211
commit 01df7671d5
3 changed files with 5 additions and 5 deletions

View file

@ -374,10 +374,10 @@ static int get_transport_unused_size(struct impl *this)
int res, value;
res = ioctl(this->flush_source.fd, TIOCOUTQ, &value);
if (res < 0) {
spa_log_debug(this->log, NAME " %p: ioctl fail: %m", this);
spa_log_error(this->log, NAME " %p: ioctl fail: %m", this);
return -errno;
}
spa_log_debug(this->log, NAME " %p: fd unused buffer size:%d/%d", this, value, this->fd_buffer_size);
spa_log_trace(this->log, NAME " %p: fd unused buffer size:%d/%d", this, value, this->fd_buffer_size);
return value;
}
@ -667,7 +667,7 @@ static void a2dp_on_timeout(struct spa_source *source)
this->clock->delay = (delay_nsec * this->clock->rate.denom) / SPA_NSEC_PER_SEC;
}
spa_log_debug(this->log, NAME" %p: timeout %"PRIu64" %"PRIu64"", this,
spa_log_trace(this->log, NAME" %p: timeout %"PRIu64" %"PRIu64"", this,
now_time, now_time - prev_time);
spa_log_trace(this->log, NAME " %p: %d", this, io->status);

View file

@ -1232,7 +1232,7 @@ int backend_hsphfpd_register(struct spa_bt_backend *backend)
dbus_message_unref(m);
if (r == NULL) {
spa_log_error(backend->log, NAME": Registering application %s failed", path);
spa_log_warn(backend->log, NAME": Registering application %s failed", path);
dbus_error_free(&err);
return -EIO;
}

View file

@ -531,7 +531,7 @@ int backend_ofono_register(struct spa_bt_backend *backend)
dbus_message_unref(m);
if (r == NULL) {
spa_log_error(backend->log, NAME": Registering Profile %s failed", path);
spa_log_warn(backend->log, NAME": Registering Profile %s failed", path);
dbus_error_free(&err);
return -EIO;
}