[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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)