Skip to content

Commit

Permalink
viz: fix reversed stats_logger label (apache#3475)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx authored and michellethomas committed May 23, 2018
1 parent b30e6c5 commit f7823da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def get_payload(self, force=False):
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)
Expand All @@ -244,7 +244,7 @@ def get_payload(self, force=False):
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
Expand Down

0 comments on commit f7823da

Please sign in to comment.