Skip to content

Commit

Permalink
use tracing log format
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaiah Becker-Mayer committed Oct 2, 2023
1 parent a259033 commit b8fe97a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions crates/ironrdp-rdpdr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
//! [\[MS-RDPEFS\]: Remote Desktop Protocol: File System Virtual Channel Extension]: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpefs/34d9de58-b2b5-40b6-b970-f82d4603bdb5
pub mod pdu;
use ironrdp_pdu::gcc::ChannelName;
use ironrdp_pdu::{decode, other_err, PduResult};
use ironrdp_svc::{impl_as_any, CompressionCondition, StaticVirtualChannelProcessor, SvcMessage};
use tracing::{trace, warn};

use crate::pdu::efs::{
Capabilities, ClientDeviceListAnnounce, ClientNameRequest, ClientNameRequestUnicodeFlag, CoreCapability,
CoreCapabilityKind, Devices, VersionAndIdPdu, VersionAndIdPduKind,
};
use crate::pdu::RdpdrPdu;
use ironrdp_pdu::gcc::ChannelName;
use ironrdp_pdu::{decode, other_err, PduResult};
use ironrdp_svc::{impl_as_any, CompressionCondition, StaticVirtualChannelProcessor, SvcMessage};
use tracing::{trace, warn};

/// The RDPDR channel as specified in [\[MS-RDPEFS\]].
///
Expand Down Expand Up @@ -109,11 +108,11 @@ impl StaticVirtualChannelProcessor for Rdpdr {
self.handle_client_id_confirm()
}
RdpdrPdu::ServerDeviceAnnounceResponse(pdu) => {
warn!("received unimplemented packet: {:?}", pdu); // todo
warn!(?pdu, "received unimplemented packet"); // todo
Ok(Vec::new())
}
RdpdrPdu::Unimplemented => {
warn!("received unimplemented packet: {:?}", pdu);
warn!(?pdu, "received unimplemented packet");
Ok(Vec::new())
}
_ => Err(other_err!("rdpdr", "internal error")),
Expand Down

0 comments on commit b8fe97a

Please sign in to comment.