query: dump invalid packet from master server

This commit is contained in:
Denis Drakhnia 2023-11-01 20:04:57 +02:00
parent 417254d32e
commit 44448da7a6
1 changed files with 5 additions and 1 deletions

View File

@ -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])
);
}
}
}