diff options
-rw-r--r-- | wqflask/wqflask/user_session.py | 1 | ||||
-rw-r--r-- | wqflask/wqflask/views.py | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/wqflask/wqflask/user_session.py b/wqflask/wqflask/user_session.py index d3c4a62f..cef50cd9 100644 --- a/wqflask/wqflask/user_session.py +++ b/wqflask/wqflask/user_session.py @@ -22,7 +22,6 @@ THIRTY_DAYS = 60 * 60 * 24 * 30 @app.before_request def get_user_session(): - logger.info("@app.before_request get_session") g.user_session = UserSession() # ZS: I think this should solve the issue of deleting the cookie and redirecting to the home page when a user's session has expired if not g.user_session: diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 220d9b87..f65dd143 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -109,17 +109,14 @@ logger = utility.logger.getLogger(__name__) @app.before_request def connect_db(): - logger.info("@app.before_request connect_db") db = getattr(g, '_database', None) if db is None: g.db = g._database = sqlalchemy.create_engine( SQL_URI, encoding="latin1") - logger.debug(g.db) @app.before_request def check_access_permissions(): - logger.debug("@app.before_request check_access_permissions") if 'dataset' in request.args: permissions = DEFAULT_PRIVILEGES if request.args['dataset'] != "Temp": @@ -145,7 +142,6 @@ def check_access_permissions(): def shutdown_session(exception=None): db = getattr(g, '_database', None) if db is not None: - logger.debug("remove db_session") db_session.remove() g.db = None |