Skip to content

Find, verify, and analyze leaked credentials

Add commits scanned to log (#1600)

Bill Richc995e93dcc83
diff --git a/pkg/sources/git/git.go b/pkg/sources/git/git.go
index d3edb87b7..d0e5f5b27 100644
--- a/pkg/sources/git/git.go
+++ b/pkg/sources/git/git.go
@@ -160,7 +160,7 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk) err
}
totalRepos := len(s.conn.Repositories) + len(s.conn.Directories)
- ctx.Logger().V(1).Info("Git source finished scanning", "repo_count", totalRepos)
+ ctx.Logger().V(1).Info("Git source finished scanning", "repo_count", totalRepos, "commits_scanned", atomic.LoadUint64(&s.git.metrics.commitsScanned))
s.SetProgressComplete(
totalRepos, totalRepos,
fmt.Sprintf("Completed scanning source %s", s.name), "",