From 7e6a15a0f4a5e11ffe11edde134f1d10db954b62 Mon Sep 17 00:00:00 2001 From: Umputun Date: Wed, 16 May 2018 14:29:07 -0500 Subject: [PATCH] remove noise debug with cache hit/miss info --- app/rest/cache.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/rest/cache.go b/app/rest/cache.go index c6ff889c..4c0c4e05 100644 --- a/app/rest/cache.go +++ b/app/rest/cache.go @@ -1,7 +1,6 @@ package rest import ( - "log" "net/http" "strings" "time" @@ -29,11 +28,9 @@ func NewLoadingCache(defaultExpiration, cleanupInterval time.Duration, postFlush // Get is loading cache method to get value by key or load via fn if not found func (lc *loadingCache) Get(key string, ttl time.Duration, fn func() ([]byte, error)) (data []byte, err error) { if b, ok := lc.bytesCache.Get(key); ok { - log.Printf("[DEBUG] cache hit %s", key) return b.([]byte), nil } - log.Printf("[DEBUG] cache miss %s", key) if data, err = fn(); err != nil { return data, err }