This commit is contained in:
Kenneth Kehl
2024-09-10 08:46:31 -07:00
parent bdf4c9597b
commit a3ef868924
3 changed files with 7 additions and 9 deletions

View File

@@ -163,11 +163,11 @@ class E2ETest(Staging):
# Borrowed from development environment
DEBUG = True
# SESSION_COOKIE_SECURE = False
# SESSION_PROTECTION = None
# HTTP_PROTOCOL = "http"
# ASSET_DOMAIN = ""
# ASSET_PATH = "/static/"
SESSION_COOKIE_SECURE = False
SESSION_PROTECTION = None
HTTP_PROTOCOL = "http"
ASSET_DOMAIN = ""
ASSET_PATH = "/static/"
# Borrowed from test environment
TESTING = True

View File

@@ -158,8 +158,6 @@ def _handle_e2e_tests(redirect_url):
# Trying to get a message back to playwright somehow since we can't see the admin logs
return redirect(url_for(f"https://{stre}"))
# return redirect(url_for("main.show_accounts_or_dashboard", next=redirect_url))
@main.route("/sign-in", methods=(["GET", "POST"]))
@hide_from_search_engines

View File

@@ -6,6 +6,7 @@ from itertools import product
from flask import g, request
from flask.ctx import has_app_context, has_request_context
from flask.logging import default_handler
from pythonjsonlogger.jsonlogger import JsonFormatter as BaseJSONFormatter
LOG_FORMAT = (
@@ -21,8 +22,7 @@ def init_app(app):
app.config.setdefault("NOTIFY_LOG_LEVEL", "INFO")
app.config.setdefault("NOTIFY_APP_NAME", "none")
# Try adding back default handler
# app.logger.removeHandler(default_handler)
app.logger.removeHandler(default_handler)
handlers = get_handlers(app)
loglevel = logging.getLevelName(app.config["NOTIFY_LOG_LEVEL"])