Skip to content

Commit c23a0b4

Browse files
committed
wrap debug for easier reading
1 parent c67ed09 commit c23a0b4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

processor/processor.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,11 @@ func Process() {
573573

574574
SortBy = strings.ToLower(SortBy)
575575

576-
printDebug(fmt.Sprintf("NumCPU: %d", runtime.NumCPU()))
577-
printDebug(fmt.Sprintf("SortBy: %s", SortBy))
578-
printDebug(fmt.Sprintf("PathDenyList: %v", PathDenyList))
576+
if Debug {
577+
printDebug(fmt.Sprintf("NumCPU: %d", runtime.NumCPU()))
578+
printDebug(fmt.Sprintf("SortBy: %s", SortBy))
579+
printDebug(fmt.Sprintf("PathDenyList: %v", PathDenyList))
580+
}
579581

580582
potentialFilesQueue := make(chan *gocodewalker.File, FileListQueueSize) // files that pass the .gitignore checks
581583
fileListQueue := make(chan *FileJob, FileListQueueSize) // Files ready to be read from disk

0 commit comments

Comments
 (0)