From d06d227ebe0db49dcfceacb194f446b173fe8a88 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Wed, 11 Jan 2023 16:56:40 -0600 Subject: [PATCH] improvement: lower REQ logging and note possible truncation --- src/server.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server.rs b/src/server.rs index ac2aa8a..66e170c 100644 --- a/src/server.rs +++ b/src/server.rs @@ -434,7 +434,8 @@ fn convert_to_msg(msg: String, max_bytes: Option) -> Result match parsed_res { Ok(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 Some(max_size) = max_bytes {