Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bcherry committed Oct 7, 2024
1 parent 37f77cd commit 6412382
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions livekit-ffi/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ impl Default for FfiServer {
log::set_logger(logger).unwrap();
log::set_max_level(log::LevelFilter::Trace);

log::error!("FfiServer::default - Starting FfiServer");

#[cfg(feature = "tracing")]
console_subscriber::init();

Expand Down
1 change: 1 addition & 0 deletions livekit/src/room/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ impl RoomSession {
log::warn!("Received RPC request with null sender identity");
return Ok(());
}
log::debug!("Received RPC request: {:?} sender: {:?} self: {:?}", request_id, sender_identity, self.local_participant.identity());
self.local_participant.handle_incoming_rpc_request(
sender_identity.unwrap(),
request_id,
Expand Down
1 change: 1 addition & 0 deletions livekit/src/rtc_engine/rtc_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ impl SessionInner {
}

let data = proto::DataPacket::decode(&*data).unwrap();
log::error!("Received data packet: {:?}", data);
if let Some(packet) = data.value.as_ref() {
match packet {
proto::data_packet::Value::User(user) => {
Expand Down

0 comments on commit 6412382

Please sign in to comment.