summaryrefslogtreecommitdiff
path: root/nrf-softdevice/src/ble/l2cap.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2022-07-07 23:26:19 +0200
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2022-07-07 23:26:19 +0200
commit41db26cea32fa4ed213b666530ea14ab7027a2f0 (patch)
tree1fc285a9ff88b7f27e29844150ebe03b9f327005 /nrf-softdevice/src/ble/l2cap.rs
parent92139b7c647b6ca2242b0b304b6685e0b2b0dba2 (diff)
downloadnrf-softdevice-41db26cea32fa4ed213b666530ea14ab7027a2f0.zip
Lower some log levels.
Ideally during normal operation very little things should be logged at `info` level. Lower them to trace/debug. As a general rule, I'm setting logs that fire per packet to `trace` and everything else to `debug`.
Diffstat (limited to 'nrf-softdevice/src/ble/l2cap.rs')
-rw-r--r--nrf-softdevice/src/ble/l2cap.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/nrf-softdevice/src/ble/l2cap.rs b/nrf-softdevice/src/ble/l2cap.rs
index 7154c1f..4488e92 100644
--- a/nrf-softdevice/src/ble/l2cap.rs
+++ b/nrf-softdevice/src/ble/l2cap.rs
@@ -22,14 +22,14 @@ fn credit_hack_refill(conn: u16, cid: u16) {
warn!("sd_ble_l2cap_ch_flow_control credits query err {:?}", err);
return;
}
- info!("sd_ble_l2cap_ch_flow_control credits={=u16:x}", credits);
+ trace!("sd_ble_l2cap_ch_flow_control credits={=u16:x}", credits);
if credits > CREDITS_MIN {
// Still enough credits, no need to refill.
return;
}
- info!("refilling credits");
+ debug!("refilling credits");
let ret = unsafe { raw::sd_ble_l2cap_ch_flow_control(conn, cid, CREDITS_MAX, ptr::null_mut()) };
if let Err(err) = RawError::convert(ret) {
@@ -194,7 +194,7 @@ impl<P: Packet> L2cap<P> {
warn!("sd_ble_l2cap_ch_setup err {:?}", err);
return Err(err.into());
}
- info!("cid {:?}", cid);
+ debug!("cid {:?}", cid);
portal(conn_handle)
.wait_once(|ble_evt| unsafe {