viz: fix reversed stats_logger label (#3475)

This commit is contained in:
Riccardo Magliocchetti 2017-09-18 18:45:49 +02:00 committed by Maxime Beauchemin
parent 6962c76412
commit cb4d934ba5
1 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ class BaseViz(object):
payload = cache.get(cache_key)
if payload:
stats_logger.incr('loaded_from_source')
stats_logger.incr('loaded_from_cache')
is_cached = True
try:
cached_data = zlib.decompress(payload)
@ -244,7 +244,7 @@ class BaseViz(object):
logging.info("Serving from cache")
if not payload:
stats_logger.incr('loaded_from_cache')
stats_logger.incr('loaded_from_source')
data = None
is_cached = False
cache_timeout = self.cache_timeout