From e31128a7150502f6698a64b276ddc356899767c0 Mon Sep 17 00:00:00 2001 From: geauxvirtual Date: Mon, 25 Jan 2016 20:00:29 -0800 Subject: [PATCH] Change log message from error to debug and log the correct namespace being added to cache --- control/strategy/lru.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/control/strategy/lru.go b/control/strategy/lru.go index 99781f9f1..7898693f8 100644 --- a/control/strategy/lru.go +++ b/control/strategy/lru.go @@ -124,6 +124,7 @@ func (l *lru) UpdateCache(mts []core.Metric) { if mt.Labels() == nil { // cache the individual metric l.metricCache.put(core.JoinNamespace(mt.Namespace()), mt.Version(), mt) + l.logger.Debugf("putting %v:%v in the cache", mt.Namespace(), mt.Version()) } else { // collect the dynamic query results so we can cache ns := make([]string, len(mt.Namespace())) @@ -136,7 +137,7 @@ func (l *lru) UpdateCache(mts []core.Metric) { } dc[core.JoinNamespace(ns)] = append(dc[core.JoinNamespace(ns)], mt) l.metricCache.put(core.JoinNamespace(ns), mt.Version(), dc[core.JoinNamespace(ns)]) - l.logger.Errorf("putting %v:%v in the cache", mt.Namespace(), mt.Version()) + l.logger.Debugf("putting %v:%v in the cache", ns, mt.Version()) } results = append(results, mt) }