Browse Source

query: dump invalid packet from master server

ipv6
Denis Drakhnia 1 year ago
parent
commit
44448da7a6
  1. 6
      query/src/main.rs

6
query/src/main.rs

@ -307,7 +307,11 @@ impl<'a> Scan<'a> { @@ -307,7 +307,11 @@ impl<'a> Scan<'a> {
set.extend(packet.iter());
}
} else {
eprintln!("warn: invalid packet from master {}", from);
eprintln!(
"warn: invalid packet from master {}, raw \"{}\"",
from,
Str(&buf[..n])
);
}
}
}

Loading…
Cancel
Save