Commit b44b27ef authored by Ahmad Sherif's avatar Ahmad Sherif

Log to file that commit/blob indexing has started

parent 2eab479c
......@@ -54,22 +54,18 @@ repo = Repository.new
params = { from_rev: FROM_SHA, to_rev: TO_SHA }.compact
print "Indexing commits..."
LOGGER.info("Indexing commits started")
timings = Benchmark.measure do
repo.index_commits(params)
end
puts "Done"
LOGGER.info("Commits for #{REPO_PATH} are indexed. Time elapsed: #{timings.real}")
print "Indexing blobs..."
LOGGER.info("Indexing blobs started")
timings = Benchmark.measure do
repo.index_blobs(params)
end
puts "Done"
LOGGER.info("Blobs for #{REPO_PATH} are indexed. Time elapsed: #{timings.real}")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment