mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-12-22 16:35:51 -05:00
improvement: log slow filter query time
This commit is contained in:
parent
c377b136aa
commit
e5e03d4378
|
@ -388,8 +388,8 @@ impl NostrRepo for SqliteRepo {
|
|||
// to reduce logging; only show 1/16th of clients (leading 0)
|
||||
if slow_first_event && client_id.starts_with('0') {
|
||||
debug!(
|
||||
"filter first result (slow): {} (cid: {}, sub: {:?})",
|
||||
serde_json::to_string(&filter)?, client_id, sub.id
|
||||
"filter first result in {:?} (slow): {} (cid: {}, sub: {:?})",
|
||||
first_event_elapsed, serde_json::to_string(&filter)?, client_id, sub.id
|
||||
);
|
||||
}
|
||||
first_result = false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user