mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user