From fbd33151101c75e0ed65d1eb715213abe71b52a2 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Mon, 9 Jan 2023 22:12:20 -0600 Subject: [PATCH] improvement: log REQ messages at debug level --- src/server.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server.rs b/src/server.rs index fdcc7eb..d3d2f19 100644 --- a/src/server.rs +++ b/src/server.rs @@ -433,6 +433,9 @@ fn convert_to_msg(msg: String, max_bytes: Option) -> Result let parsed_res: Result = serde_json::from_str(&msg).map_err(|e| e.into()); match parsed_res { Ok(m) => { + if let NostrMessage::SubMsg(_) = m { + debug!("REQ: {:?}",msg); + }; if let NostrMessage::EventMsg(_) = m { if let Some(max_size) = max_bytes { // check length, ensure that some max size is set.