diff options
author | BonfaceKilz | 2021-10-28 12:51:27 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-11-04 15:22:41 +0300 |
commit | 77845700752ff3283f40f0293e3b6d90c0b86d0c (patch) | |
tree | 1f577bc07554cbf341b06d2285f15206dabc6c76 /wqflask | |
parent | fbbdca01308610813aa7f77deb120e95aed8df6e (diff) | |
download | genenetwork2-77845700752ff3283f40f0293e3b6d90c0b86d0c.tar.gz |
Delete noisy debugging
Logging happens before every request, twice! Remove these.
Diffstat (limited to 'wqflask')
-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 |