Skip to content

Commit 8c6bf71

Browse files
committed
remove log finished content before output print
1 parent 44b09e7 commit 8c6bf71

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

cli/gitcommands.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ func GitAuditCmd(c *components.Context) error {
9999
gitAuditCmd.SetUploadCdxResults(uploadResults).SetRtResultRepository(c.GetStringFlagValue(flags.UploadRtRepoPath))
100100
// Run the command with progress bar if needed, Reporting error if Xsc service is enabled
101101
err = reportErrorIfExists(xrayVersion, xscVersion, serverDetails, gitAuditCmd.GetProjectKey(), progressbar.ExecWithProgress(gitAuditCmd))
102-
log.Info("####### jf git audit Scan Finished #######")
103102
return err
104103
}
105104

cli/scancommands.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ func AuditCmd(c *components.Context) error {
433433
auditCmd.SetThreads(threads)
434434
// Reporting error if Xsc service is enabled
435435
err = reportErrorIfExists(xrayVersion, xscVersion, serverDetails, auditCmd.GetProjectKey(), progressbar.ExecWithProgress(auditCmd))
436-
log.Info("####### jf audit Scan Finished #######")
437436
return err
438437
}
439438

commands/audit/audit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func (auditCmd *AuditCommand) Run() (err error) {
242242
return errors.Join(err, auditResults.GetErrors())
243243
}
244244
}
245-
245+
log.Info("####### jf audit Scan Finished #######")
246246
return OutputResultsAndCmdError(auditResults, auditCmd.getResultWriter(auditResults), auditCmd.Fail)
247247
}
248248

commands/git/audit/gitaudit.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func (gaCmd *GitAuditCommand) Run() (err error) {
6262
return errors.Join(err, auditResults.GetErrors())
6363
}
6464
}
65+
log.Info("####### jf git audit Scan Finished #######")
6566
return sourceAudit.OutputResultsAndCmdError(auditResults, gaCmd.getResultWriter(auditResults), gaCmd.failBuild)
6667
}
6768

0 commit comments

Comments
 (0)