From e5e03d4378528dac8a45825f87ac66c584e66d9d Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Wed, 1 Feb 2023 18:09:30 -0600 Subject: [PATCH] improvement: log slow filter query time --- src/repo/sqlite.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repo/sqlite.rs b/src/repo/sqlite.rs index d016e71..2d1b676 100644 --- a/src/repo/sqlite.rs +++ b/src/repo/sqlite.rs @@ -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;