From bfc804e18c94f9ec0c124d558e25a7cc807168c7 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Thu, 23 Dec 2021 21:30:04 -0600 Subject: [PATCH] feat: debug protocol messages --- src/protostream.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/protostream.rs b/src/protostream.rs index 2e04328..3e8bfd3 100644 --- a/src/protostream.rs +++ b/src/protostream.rs @@ -53,6 +53,7 @@ impl Stream for NostrStream { fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { /// Convert Message to NostrMessage fn convert(msg: String) -> Result { + debug!("raw msg: {}", msg); let parsed_res: Result = serde_json::from_str(&msg).map_err(|e| e.into()); match parsed_res { Ok(m) => Ok(m),