Skip to content

Commit

Permalink
Lower the log level
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed May 7, 2024
1 parent 1cbe2e4 commit 4d45c35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/bt/ble/gap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use core::{ffi::CStr, ops::BitOr};
use crate::bt::BtSingleton;
use crate::sys::*;

use log::info;
use log::debug;

use crate::{
bt::{BdAddr, BleEnabled, BtDriver, BtStatus, BtUuid},
Expand Down Expand Up @@ -702,7 +702,7 @@ where
let param = unsafe { param.as_ref() }.unwrap();
let event = BleGapEvent::from((event, param));

info!("Got event {{ {:#?} }}", event);
debug!("Got event {{ {:#?} }}", event);

SINGLETON.call(event);
}
Expand Down
6 changes: 3 additions & 3 deletions src/bt/ble/gatt/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use core::borrow::Borrow;
use core::fmt::{self, Debug};
use core::marker::PhantomData;

use log::info;
use log::{debug, trace};

use crate::bt::{BdAddr, BleEnabled, BtDriver, BtSingleton, BtUuid};
use crate::sys::*;
Expand Down Expand Up @@ -598,7 +598,7 @@ where
))?;

let data = core::slice::from_raw_parts(data, len as _);
info!("len: {:?}, data: {:p}", len, data);
trace!("len: {:?}, data: {:p}", len, data);

if buf.len() < len as _ {
Err(EspError::from_infallible::<ESP_ERR_INVALID_ARG>())?;
Expand Down Expand Up @@ -683,7 +683,7 @@ where
let param = unsafe { param.as_ref() }.unwrap();
let event = GattsEvent::from((event, param));

info!("Got event {{ {:#?} }}", event);
debug!("Got event {{ {:#?} }}", event);

SINGLETON.call((gatts_if, event));
}
Expand Down
4 changes: 2 additions & 2 deletions src/bt/gap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use enumset::{EnumSet, EnumSetType};

use crate::sys::*;

use log::info;
use log::debug;

use num_enum::TryFromPrimitive;

Expand Down Expand Up @@ -816,7 +816,7 @@ where
let param = unsafe { param.as_ref() }.unwrap();
let event = GapEvent::from((event, param));

info!("Got event {{ {:#?} }}", event);
debug!("Got event {{ {:#?} }}", event);

SINGLETON.call(event);
}
Expand Down

0 comments on commit 4d45c35

Please sign in to comment.