Skip to content

Commit 0761334

Browse files
authored
Fix double summary printing introduced in 03ca8aa (#3903)
1 parent 985eb75 commit 0761334

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

main.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -554,22 +554,6 @@ func run(state overseer.State) {
554554
logger.V(2).Info("exiting with code 183 because results were found")
555555
os.Exit(183)
556556
}
557-
558-
// Print results.
559-
logger.Info("finished scanning",
560-
"chunks", metrics.ChunksScanned,
561-
"bytes", metrics.BytesScanned,
562-
"verified_secrets", metrics.VerifiedSecretsFound,
563-
"unverified_secrets", metrics.UnverifiedSecretsFound,
564-
"scan_duration", metrics.ScanDuration.String(),
565-
"trufflehog_version", version.BuildVersion,
566-
)
567-
568-
if metrics.hasFoundResults && *fail {
569-
logger.V(2).Info("exiting with code 183 because results were found")
570-
os.Exit(183)
571-
}
572-
573557
}
574558

575559
func compareScans(ctx context.Context, cmd string, cfg engine.Config) error {

0 commit comments

Comments
 (0)