mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-29 02:34:02 -04:00
cleanup
This commit is contained in:
@@ -163,11 +163,11 @@ class E2ETest(Staging):
|
|||||||
|
|
||||||
# Borrowed from development environment
|
# Borrowed from development environment
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
# SESSION_COOKIE_SECURE = False
|
SESSION_COOKIE_SECURE = False
|
||||||
# SESSION_PROTECTION = None
|
SESSION_PROTECTION = None
|
||||||
# HTTP_PROTOCOL = "http"
|
HTTP_PROTOCOL = "http"
|
||||||
# ASSET_DOMAIN = ""
|
ASSET_DOMAIN = ""
|
||||||
# ASSET_PATH = "/static/"
|
ASSET_PATH = "/static/"
|
||||||
|
|
||||||
# Borrowed from test environment
|
# Borrowed from test environment
|
||||||
TESTING = True
|
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
|
# 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(f"https://{stre}"))
|
||||||
|
|
||||||
# return redirect(url_for("main.show_accounts_or_dashboard", next=redirect_url))
|
|
||||||
|
|
||||||
|
|
||||||
@main.route("/sign-in", methods=(["GET", "POST"]))
|
@main.route("/sign-in", methods=(["GET", "POST"]))
|
||||||
@hide_from_search_engines
|
@hide_from_search_engines
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ from itertools import product
|
|||||||
|
|
||||||
from flask import g, request
|
from flask import g, request
|
||||||
from flask.ctx import has_app_context, has_request_context
|
from flask.ctx import has_app_context, has_request_context
|
||||||
|
from flask.logging import default_handler
|
||||||
from pythonjsonlogger.jsonlogger import JsonFormatter as BaseJSONFormatter
|
from pythonjsonlogger.jsonlogger import JsonFormatter as BaseJSONFormatter
|
||||||
|
|
||||||
LOG_FORMAT = (
|
LOG_FORMAT = (
|
||||||
@@ -21,8 +22,7 @@ def init_app(app):
|
|||||||
app.config.setdefault("NOTIFY_LOG_LEVEL", "INFO")
|
app.config.setdefault("NOTIFY_LOG_LEVEL", "INFO")
|
||||||
app.config.setdefault("NOTIFY_APP_NAME", "none")
|
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)
|
handlers = get_handlers(app)
|
||||||
loglevel = logging.getLevelName(app.config["NOTIFY_LOG_LEVEL"])
|
loglevel = logging.getLevelName(app.config["NOTIFY_LOG_LEVEL"])
|
||||||
|
|||||||
Reference in New Issue
Block a user