[chore] Always log git repositories being scanned (#2909)

This commit is contained in:
Miccah
2024-06-03 18:02:34 -07:00
committed by GitHub
parent 911ea4d678
commit c86b423c61
+2 -2
View File
@@ -550,7 +550,7 @@ func (s *Git) ScanCommits(ctx context.Context, repo *git.Repository, path string
gitDir := filepath.Join(path, gitDirName)
logger.V(1).Info("scanning repo", logValues...)
logger.Info("scanning repo", logValues...)
var depth int64
var lastCommitHash string
@@ -790,7 +790,7 @@ func (s *Git) ScanStaged(ctx context.Context, repo *git.Repository, path string,
if scanOptions.MaxDepth > 0 {
logValues = append(logValues, "max_depth", scanOptions.MaxDepth)
}
logger.V(1).Info("scanning repo", logValues...)
logger.Info("scanning repo", logValues...)
ctx.Logger().V(1).Info("scanning staged changes", "path", path)