superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: viz: fix reversed stats_logger label (#3475)
Date Mon, 18 Sep 2017 16:45:51 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new cb4d934  viz: fix reversed stats_logger label (#3475)
cb4d934 is described below

commit cb4d934ba52ed3b6624077bfe701b5944346518a
Author: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
AuthorDate: Mon Sep 18 18:45:49 2017 +0200

    viz: fix reversed stats_logger label (#3475)
---
 superset/viz.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/viz.py b/superset/viz.py
index 08c852d..1f844ed 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -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

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message