improvement: log slow filter query time

This commit is contained in:
Greg Heartsfield 2023-02-01 18:09:30 -06:00
parent c377b136aa
commit e5e03d4378

View File

@ -388,8 +388,8 @@ impl NostrRepo for SqliteRepo {
// to reduce logging; only show 1/16th of clients (leading 0) // to reduce logging; only show 1/16th of clients (leading 0)
if slow_first_event && client_id.starts_with('0') { if slow_first_event && client_id.starts_with('0') {
debug!( debug!(
"filter first result (slow): {} (cid: {}, sub: {:?})", "filter first result in {:?} (slow): {} (cid: {}, sub: {:?})",
serde_json::to_string(&filter)?, client_id, sub.id first_event_elapsed, serde_json::to_string(&filter)?, client_id, sub.id
); );
} }
first_result = false; first_result = false;