From 5b653354149cb9812b47994f06d4bd6119d9f907 Mon Sep 17 00:00:00 2001 From: Marcin Matlaszek Date: Mon, 17 Dec 2018 15:49:30 +0100 Subject: [PATCH] Fix for cache operations message --- cmd/util.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/util.go b/cmd/util.go index 58f082e..94d519d 100644 --- a/cmd/util.go +++ b/cmd/util.go @@ -76,7 +76,11 @@ func getCacheList() cache.GlobalCacheList { refreshStart := time.Now() cacheList.RefreshInParallel(false) refreshElapsed := time.Since(refreshStart) - fmt.Printf("Cache refresh total time: %s\n\n", refreshElapsed) + + if config.GlobalConfig.Verbose { + fmt.Printf("Cache operations total time: %s\n\n", refreshElapsed) + } + return cacheList }