mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
[chore] Always log git repositories being scanned (#2909)
This commit is contained in:
parent
911ea4d678
commit
c86b423c61
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue