nostr-rs-relay

My dev fork of nostr-rs-relay
git clone git://jb55.com/nostr-rs-relay
Log | Files | Refs | README | LICENSE

commit 9dd4571bee05804531079b8e08a32800faaf3a34
parent 9db5a26b9c2c97bf0da10fb9bf0e0f6deed0acec
Author: Greg Heartsfield <scsibug@imap.cc>
Date:   Sun,  6 Nov 2022 13:49:32 -0600

refactor: reduce level of some common DB logs

Diffstat:
Msrc/db.rs | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/db.rs b/src/db.rs @@ -577,7 +577,7 @@ fn query_from_sub(sub: &Subscription) -> (String, Vec<Box<dyn ToSql>>) { .map(|s| format!("SELECT content, created_at FROM ({})", s)) .collect(); let query: String = subqueries_selects.join(" UNION "); - debug!("final query string: {}", query); + trace!("final query string: {}", query); (query, params) } @@ -595,12 +595,12 @@ pub async fn db_query( mut abandon_query_rx: tokio::sync::oneshot::Receiver<()>, ) { task::spawn_blocking(move || { - debug!("going to query for: {:?}", sub); + trace!("going to query for: {:?}", sub); let mut row_count: usize = 0; let start = Instant::now(); // generate SQL query let (q, p) = query_from_sub(&sub); - debug!("SQL generated in {:?}", start.elapsed()); + trace!("SQL generated in {:?}", start.elapsed()); // show pool stats debug!("DB pool stats: {:?}", pool.state()); let start = Instant::now();