Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Change log message from error to debug and log the correct namespace …
Browse files Browse the repository at this point in the history
…being added to cache
  • Loading branch information
geauxvirtual committed Jan 26, 2016
1 parent 2f590de commit e31128a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion control/strategy/lru.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand All @@ -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)
}
Expand Down

0 comments on commit e31128a

Please sign in to comment.