mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-25 01:59:08 -05:00
improvement: lower REQ logging and note possible truncation
This commit is contained in:
parent
3519488c4e
commit
d06d227ebe
|
@ -434,7 +434,8 @@ fn convert_to_msg(msg: String, max_bytes: Option<usize>) -> Result<NostrMessage>
|
||||||
match parsed_res {
|
match parsed_res {
|
||||||
Ok(m) => {
|
Ok(m) => {
|
||||||
if let NostrMessage::SubMsg(_) = m {
|
if let NostrMessage::SubMsg(_) = m {
|
||||||
debug!("REQ: {:?}",msg);
|
// note; this only prints the first 16k of a REQ and then truncates.
|
||||||
|
trace!("REQ: {:?}",msg);
|
||||||
};
|
};
|
||||||
if let NostrMessage::EventMsg(_) = m {
|
if let NostrMessage::EventMsg(_) = m {
|
||||||
if let Some(max_size) = max_bytes {
|
if let Some(max_size) = max_bytes {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user