mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-22 00:59:07 -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)
|
// 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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user