appview/indexer: log docCount on startup #814

merged
opened by oppi.li targeting master from op/ztvvwpoulppu
Changed files
+6 -2
appview
indexer
issues
pulls
+3 -1
appview/indexer/issues/indexer.go
···
log.Fatalln("failed to populate issue indexer", err)
}
}
-
l.Info("Initialized the issue indexer")
}
func generateIssueIndexMapping() (mapping.IndexMapping, error) {
···
log.Fatalln("failed to populate issue indexer", err)
}
}
+
+
count, _ := ix.indexer.DocCount()
+
l.Info("Initialized the issue indexer", "docCount", count)
}
func generateIssueIndexMapping() (mapping.IndexMapping, error) {
+3 -1
appview/indexer/pulls/indexer.go
···
log.Fatalln("failed to populate pull indexer", err)
}
}
-
l.Info("Initialized the pull indexer")
}
func generatePullIndexMapping() (mapping.IndexMapping, error) {
···
log.Fatalln("failed to populate pull indexer", err)
}
}
+
+
count, _ := ix.indexer.DocCount()
+
l.Info("Initialized the pull indexer", "docCount", count)
}
func generatePullIndexMapping() (mapping.IndexMapping, error) {