Skip to content

Commit 96bd3dd

Browse files
authored
Add debug logs to indicate scanned branches in scan-repo (#855)
1 parent ca58692 commit 96bd3dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scanrepository/scanrepository.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ func (cfp *ScanRepositoryCmd) scanAndFixRepository(repository *utils.Repository,
7171
if err = cfp.setCommandPrerequisites(repository, client); err != nil {
7272
return
7373
}
74+
log.Debug(fmt.Sprintf("Detected branches for scan: %s", strings.Join(repository.Branches, ", ")))
7475
for _, branch := range repository.Branches {
76+
log.Debug(fmt.Sprintf("Scanning '%s' branch...", branch))
7577
cfp.scanDetails.SetBaseBranch(branch)
7678
cfp.scanDetails.SetXscGitInfoContext(branch, repository.Project, client)
7779
if err = cfp.scanAndFixBranch(repository); err != nil {

0 commit comments

Comments
 (0)