Skip to content

Commit

Permalink
Merge pull request #7 from tedbennett/verbose-logging
Browse files Browse the repository at this point in the history
Move log behind verbose flag
  • Loading branch information
pablodz committed Jul 30, 2024
2 parents 4955d67 + ff37d86 commit 29b1ca4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inotifywaitgo/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ func WatchPath(s *Settings) {
scanner := bufio.NewScanner(stdout)
for scanner.Scan() {
line := scanner.Text()
log.Println(line)

if s.Verbose {
log.Println(line)
}

parts, err := parseLine(line)
if err != nil || len(parts) < 2 {
Expand Down

0 comments on commit 29b1ca4

Please sign in to comment.