Skip to content

Commit

Permalink
Upgraded malformed packet log to error
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmcquilkin committed Mar 7, 2024
1 parent 80f55ff commit aa95930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connections/stream_buffer.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::protobufs;
use log::{debug, error, info, warn};
use log::{debug, error, warn};
use prost::Message;
use thiserror::Error;
use tokio::sync::mpsc::UnboundedSender;
Expand Down Expand Up @@ -209,7 +209,7 @@ impl StreamBuffer {
// If the byte after the 0x94 is 0xc3, this means not all bytes were received
// in the current packet, meaning the packet is malformed and should be purged
if *malformed_packet_detector_byte.unwrap_or(&0) == 0xc3 {
info!("Detected malformed packet, purging");
error!("Detected malformed packet, purging");

let next_packet_start_idx =
malformed_packet_detector_index.ok_or(StreamBufferError::MissingNextPacketIndex)?;
Expand Down

0 comments on commit aa95930

Please sign in to comment.