Author: Honza Pokorny <honza@redhat.com>
Make cache output less noisy
pkg/bookends/bookends.go | 6 ------
diff --git a/pkg/bookends/bookends.go b/pkg/bookends/bookends.go
index d0e091629d732b7109cea90ddb915c3adf1efdc3..972a2ac127970f6f3f78292d64f6cd54b9192e26 100644
--- a/pkg/bookends/bookends.go
+++ b/pkg/bookends/bookends.go
@@ -303,21 +303,16 @@ if err != nil {
return err
}
- fmt.Println(len(books))
-
for _, book := range books {
- fmt.Println("Processing", book.Title)
cachePath := path.Join(config.CacheDir, fmt.Sprintf("%s.jpg", book.ISBN))
if PathExists(cachePath) {
- fmt.Println(" Cache exists", cachePath)
continue
}
coversPath := path.Join(config.CoversDir, fmt.Sprintf("%s.jpg", book.ISBN))
if PathExists(coversPath) {
- fmt.Println(" Cover exists", coversPath)
// Copy the file over
err := copy(coversPath, cachePath)
@@ -335,7 +330,6 @@ if err != nil {
return err
}
- fmt.Println(" GET", coverUrl.String())
resp, err := http.Get(coverUrl.String())
if err != nil {