forked from jmug/stoatchat
chore: add debug logging to voice ingress
This commit is contained in:
@@ -228,6 +228,8 @@ pub async fn ingress(
|
|||||||
..=user_limits.video_aspect_ratio[1])
|
..=user_limits.video_aspect_ratio[1])
|
||||||
.contains(&(track.width as f32 / track.height as f32)))))
|
.contains(&(track.width as f32 / track.height as f32)))))
|
||||||
{
|
{
|
||||||
|
log::debug!("Removing user {user_id} from channel {channel_id} {event:?} due to forbidden track.");
|
||||||
|
|
||||||
voice_client.remove_user(node, user_id, channel_id).await?;
|
voice_client.remove_user(node, user_id, channel_id).await?;
|
||||||
delete_voice_state(channel_id, channel.server(), user_id).await?;
|
delete_voice_state(channel_id, channel.server(), user_id).await?;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user