From 52ec0d7b5a3affc7e83d13c467d1cccfcd8212b2 Mon Sep 17 00:00:00 2001 From: kieran Date: Thu, 5 Sep 2024 10:40:18 +0100 Subject: [PATCH] Print filters json --- src/fetch.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fetch.rs b/src/fetch.rs index fed62ff..c902649 100644 --- a/src/fetch.rs +++ b/src/fetch.rs @@ -3,7 +3,7 @@ use std::sync::Arc; use std::time::Duration; use nostr::prelude::Nip19; -use nostr::{Event, EventId, Filter, Kind, Url}; +use nostr::{serde_json, Event, EventId, Filter, Kind, Url}; use nostr_sdk::{FilterOptions, RelayOptions, RelayPool}; use tokio::sync::{oneshot, Mutex}; @@ -59,7 +59,7 @@ impl FetchQueue { batch.iter().map(move |x| Self::nip19_to_filter(&x.request).unwrap()).collect(); let pool_lock = self.pool.lock().await; - info!("Sending filters: {:?}", &filters); + info!("Sending filters: {}", serde_json::to_string(&filters).unwrap()); if let Ok(evs) = pool_lock .get_events_of(filters, Duration::from_secs(2), FilterOptions::ExitOnEOSE) .await