You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2017/09/18 16:45:51 UTC
[incubator-superset] branch master updated: viz: fix reversed
stats_logger label (#3475)
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 <ri...@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" <co...@superset.apache.org>'].