Commit 39cb5744 authored by Doug Young's avatar Doug Young Committed by Daniel DeGrasse
Browse files

Bluetooth: host: adv: update log levels in bt_le_adv_resume()



Changed logs in adv.c that would result in advertising from resuming
to err logs to aid in debugging.

Signed-off-by: default avatarDoug Young <dougyoung@meta.com>
parent 222a601b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1529,7 +1529,7 @@ void bt_le_adv_resume(void)
	int err;

	if (!adv) {
		LOG_DBG("No valid legacy adv");
		LOG_ERR("No valid legacy adv");
		return;
	}

@@ -1544,7 +1544,7 @@ void bt_le_adv_resume(void)

	err = le_adv_start_add_conn(adv, &conn);
	if (err) {
		LOG_DBG("Host cannot resume connectable advertising (%d)", err);
		LOG_ERR("Host cannot resume connectable advertising (%d)", err);
		return;
	}

@@ -1568,7 +1568,7 @@ void bt_le_adv_resume(void)

	err = bt_le_adv_set_enable(adv, true);
	if (err) {
		LOG_DBG("Controller cannot resume connectable advertising (%d)", err);
		LOG_ERR("Controller cannot resume connectable advertising (%d)", err);
		bt_conn_set_state(conn, BT_CONN_DISCONNECTED);

		/* Temporarily clear persist flag to avoid recursion in