Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoAtGit committed Jan 23, 2024
1 parent 3c9e287 commit c699c79
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions pkg/printer/utils.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package printer

import (
"fmt"
"time"

consoleFlags "github.com/Checkmarx/kics/internal/console/flags"
Expand Down Expand Up @@ -31,11 +30,9 @@ func validateFlags() error {
func PrintScanDuration(elapsed time.Duration) {
if consoleFlags.GetBoolFlag(consoleFlags.CIFlag) {
elapsedStrFormat := "Scan duration: %vms\n"
fmt.Printf(elapsedStrFormat, elapsed.Milliseconds())
log.Info().Msgf(elapsedStrFormat, elapsed.Milliseconds())
} else {
elapsedStrFormat := "Scan duration: %v\n"
fmt.Printf(elapsedStrFormat, elapsed)
log.Info().Msgf(elapsedStrFormat, elapsed)
}
}
1 change: 0 additions & 1 deletion pkg/report/commons.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ func getCurrentTime() string {

func fileCreationReport(path, filename string) {
log.Info().Str("fileName", filename).Msgf("Results saved to file %s", path)
fmt.Printf("Results saved to file %s\n", path)
}

func closeFile(path, filename string, file *os.File) {
Expand Down

0 comments on commit c699c79

Please sign in to comment.