mirror of
https://github.com/GiriNeko/hbb_common.git
synced 2025-12-17 13:57:26 +00:00
[test] add test debug info.
This commit is contained in:
parent
7d5cc2ed47
commit
e9813ffdd6
1 changed files with 2 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ impl WsFramedStream {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub async fn send_raw(&mut self, msg: Vec<u8>) -> ResultType<()> {
|
pub async fn send_raw(&mut self, msg: Vec<u8>) -> ResultType<()> {
|
||||||
self.send_bytes(bytes::Bytes::from(msg)).await
|
self.send_bytes(Bytes::from(msg)).await
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
@ -158,6 +158,7 @@ impl WsFramedStream {
|
||||||
log::debug!("Waiting for next message");
|
log::debug!("Waiting for next message");
|
||||||
|
|
||||||
while let Some(msg) = self.stream.next().await {
|
while let Some(msg) = self.stream.next().await {
|
||||||
|
log::debug!("receive msg: {:?}", msg);
|
||||||
let msg = match msg {
|
let msg = match msg {
|
||||||
Ok(msg) => msg,
|
Ok(msg) => msg,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue