You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/01/15 14:11:39 UTC

[GitHub] amodig commented on issue #4785: Not able to get the debug logs or python stacktrace on errors even after LOG_LEVEL is set to 'DEBUG'

amodig commented on issue #4785: Not able to get the debug logs or python stacktrace on errors even after LOG_LEVEL is set to 'DEBUG'
URL: https://github.com/apache/incubator-superset/issues/4785#issuecomment-454405007
 
 
   I have this same problem. Also no log file. We're using a slightly modified amancevice/superset image (Superset version 0.28.1 with added BigQuery support) on Kubernetes. Also using the Google OAuth. 
   
   Here's the `superset_config.py`:
   ```python
   import os
   from flask_appbuilder.security.manager import AUTH_OAUTH
   
   # Backend configs from the Kubernetes environment
   CACHE_REDIS_URL = os.getenv('CACHE_REDIS_URL', 'redis://redis:6379/1')
   CACHE_KEY_PREFIX = os.getenv('CACHE_KEY_PREFIX', 'superset_')
   NAMESPACE = os.getenv('NAMESPACE', 'default')
   DB_HOST = os.getenv('DB_HOST', '127.0.0.1:3306')
   DB_USER = os.getenv('DB_USER', 'proxyuser')
   DB_PASSWORD = os.getenv('DB_PASSWORD', '')
   GOOGLE_OAUTH_KEY = os.getenv('GOOGLE_OAUTH_KEY', '')
   GOOGLE_OAUTH_SECRET = os.getenv('GOOGLE_OAUTH_SECRET', '')
   
   # Superset config
   MAPBOX_API_KEY = os.getenv('MAPBOX_API_KEY', '')
   CACHE_CONFIG = {
       'CACHE_TYPE': 'redis',
       'CACHE_DEFAULT_TIMEOUT': 300,
       'CACHE_KEY_PREFIX': NAMESPACE + '-' + CACHE_KEY_PREFIX,
       'CACHE_REDIS_HOST': 'redis',
       'CACHE_REDIS_PORT': 6379,
       'CACHE_REDIS_DB': 3,
       'CACHE_REDIS_URL': CACHE_REDIS_URL}
   SQLALCHEMY_DATABASE_URI = 'mysql://{user}:{pwd}@{host}/superset'.format(
       user=DB_USER, pwd=DB_PASSWORD, host=DB_HOST)
   SQLALCHEMY_TRACK_MODIFICATIONS = True
   SECRET_KEY = 'mysecretkey'
   
   # Authentication configs (Flask OAuth)
   AUTH_TYPE = AUTH_OAUTH
   AUTH_USER_REGISTRATION = True
   AUTH_USER_REGISTRATION_ROLE = "Gamma"
   ENABLE_PROXY_FIX = True
   OAUTH_PROVIDERS = [
       {
          'name': 'google',
          'whitelist': ['@ourdomain'],
          'icon': 'fa-google',
          'token_key': 'access_token',
          'remote_app': {
               'base_url': 'https://www.googleapis.com/oauth2/v2/',
               'request_token_params': {
                 'scope': 'email profile'
               },
               'request_token_url': None,
               'access_token_url': 'https://accounts.google.com/o/oauth2/token',
               'authorize_url': 'https://accounts.google.com/o/oauth2/auth',
               'consumer_key': GOOGLE_OAUTH_KEY,
               'consumer_secret': GOOGLE_OAUTH_SECRET
           }
       }
   ]
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org