From 4e067a54844ea14669729ce69a83b24fa9c5a41b Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Mon, 17 Nov 2025 03:57:02 +0000 Subject: [PATCH] appview/indexer: log docCount on startup Change-Id: ztvvwpoulppuyunuospoxtnxomswpnsv Signed-off-by: oppiliappan --- appview/indexer/issues/indexer.go | 4 +++- appview/indexer/pulls/indexer.go | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/appview/indexer/issues/indexer.go b/appview/indexer/issues/indexer.go index d652e72a..a8da2420 100644 --- a/appview/indexer/issues/indexer.go +++ b/appview/indexer/issues/indexer.go @@ -56,7 +56,9 @@ func (ix *Indexer) Init(ctx context.Context, e db.Execer) { log.Fatalln("failed to populate issue indexer", err) } } - l.Info("Initialized the issue indexer") + + count, _ := ix.indexer.DocCount() + l.Info("Initialized the issue indexer", "docCount", count) } func generateIssueIndexMapping() (mapping.IndexMapping, error) { diff --git a/appview/indexer/pulls/indexer.go b/appview/indexer/pulls/indexer.go index 6cf2681b..438eda23 100644 --- a/appview/indexer/pulls/indexer.go +++ b/appview/indexer/pulls/indexer.go @@ -55,7 +55,9 @@ func (ix *Indexer) Init(ctx context.Context, e db.Execer) { log.Fatalln("failed to populate pull indexer", err) } } - l.Info("Initialized the pull indexer") + + count, _ := ix.indexer.DocCount() + l.Info("Initialized the pull indexer", "docCount", count) } func generatePullIndexMapping() (mapping.IndexMapping, error) { -- 2.43.0