Permalink
Browse files

Don't log about having cleaned 0 tmp files.

  • Loading branch information...
1 parent 5499527 commit d5301fdf20a82b01136811fac94a1f349b2f0e0f @dustin dustin committed Oct 19, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 hash.go
View
@@ -141,6 +141,9 @@ func cleanTmpFiles() error {
}
}
}
- log.Printf("Removed %v tmp files in %v", cleaned, time.Since(now))
+ if cleaned > 0 {
+ log.Printf("Removed %v tmp files in %v",
+ cleaned, time.Since(now))
+ }
return nil
}

0 comments on commit d5301fd

Please sign in to comment.