mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-22 09:09:07 -05:00
improvement: more precise log message
This commit is contained in:
parent
1623bacd0d
commit
f7550b4c61
|
@ -799,11 +799,11 @@ async fn nostr_server(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Err(Error::EventMaxLengthError(s)) => {
|
Err(Error::EventMaxLengthError(s)) => {
|
||||||
info!("client sent event larger ({} bytes) than max size (cid: {})", s, cid);
|
info!("client sent command larger ({} bytes) than max size (cid: {})", s, cid);
|
||||||
ws_stream.send(make_notice_message(&Notice::message("event exceeded max size".into()))).await.ok();
|
ws_stream.send(make_notice_message(&Notice::message("event exceeded max size".into()))).await.ok();
|
||||||
},
|
},
|
||||||
Err(Error::ProtoParseError) => {
|
Err(Error::ProtoParseError) => {
|
||||||
info!("client sent event that could not be parsed (cid: {})", cid);
|
info!("client sent command that could not be parsed (cid: {})", cid);
|
||||||
ws_stream.send(make_notice_message(&Notice::message("could not parse command".into()))).await.ok();
|
ws_stream.send(make_notice_message(&Notice::message("could not parse command".into()))).await.ok();
|
||||||
},
|
},
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user