commit bfc804e18c94f9ec0c124d558e25a7cc807168c7
parent 8a8ee5c425794a3a1fbb4e8c7e8f89f85314205d
Author: Greg Heartsfield <scsibug@imap.cc>
Date: Thu, 23 Dec 2021 21:30:04 -0600
feat: debug protocol messages
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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<Option<Self::Item>> {
/// Convert Message to NostrMessage
fn convert(msg: String) -> Result<NostrMessage> {
+ debug!("raw msg: {}", msg);
let parsed_res: Result<NostrMessage> = serde_json::from_str(&msg).map_err(|e| e.into());
match parsed_res {
Ok(m) => Ok(m),