diff options
Diffstat (limited to 'azalea-protocol/src/write.rs')
| -rwxr-xr-x | azalea-protocol/src/write.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/azalea-protocol/src/write.rs b/azalea-protocol/src/write.rs index 10f09165..a674bcfe 100755 --- a/azalea-protocol/src/write.rs +++ b/azalea-protocol/src/write.rs @@ -4,6 +4,7 @@ use crate::{packets::ProtocolPacket, read::MAXIMUM_UNCOMPRESSED_LENGTH}; use async_compression::tokio::bufread::ZlibEncoder; use azalea_buf::McBufVarWritable; use azalea_crypto::Aes128CfbEnc; +use log::trace; use std::fmt::Debug; use thiserror::Error; use tokio::io::{AsyncReadExt, AsyncWrite, AsyncWriteExt}; @@ -81,6 +82,7 @@ where P: ProtocolPacket + Debug, W: AsyncWrite + Unpin + Send, { + trace!("Sending packet: {:?}", packet); let mut buf = packet_encoder(packet).unwrap(); if let Some(threshold) = compression_threshold { buf = compression_encoder(&buf, threshold).await.unwrap(); |
