mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
try putting default log handler back in place to get logs streaming to github job output
This commit is contained in:
4
.github/workflows/checks.yml
vendored
4
.github/workflows/checks.yml
vendored
@@ -118,7 +118,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
curl --fail -v https://notify-api-staging.app.cloud.gov || exit 1
|
curl --fail -v https://notify-api-staging.app.cloud.gov || exit 1
|
||||||
- name: Run Admin server
|
- name: Run Admin server
|
||||||
run: make run-flask &
|
run: |
|
||||||
|
make run-flask | tee admin-server.log &
|
||||||
|
wait $!
|
||||||
env:
|
env:
|
||||||
API_HOST_NAME: https://notify-api-staging.app.cloud.gov/
|
API_HOST_NAME: https://notify-api-staging.app.cloud.gov/
|
||||||
# API_HOST_NAME: http://localhost:6011
|
# API_HOST_NAME: http://localhost:6011
|
||||||
|
|||||||
@@ -29,13 +29,13 @@ def init_app(app):
|
|||||||
loglevel = logging.getLevelName(app.config["NOTIFY_LOG_LEVEL"])
|
loglevel = logging.getLevelName(app.config["NOTIFY_LOG_LEVEL"])
|
||||||
loggers = [
|
loggers = [
|
||||||
app.logger,
|
app.logger,
|
||||||
# logging.getLogger("utils"),
|
logging.getLogger("utils"),
|
||||||
# logging.getLogger("notifications_python_client"),
|
logging.getLogger("notifications_python_client"),
|
||||||
# logging.getLogger("werkzeug"),
|
logging.getLogger("werkzeug"),
|
||||||
]
|
]
|
||||||
for logger_instance, handler in product(loggers, handlers):
|
for logger_instance, handler in product(loggers, handlers):
|
||||||
logger_instance.addHandler(handler)
|
logger_instance.addHandler(handler)
|
||||||
logger_instance.setLevel(logging.DEBUG)
|
logger_instance.setLevel(loglevel)
|
||||||
warning_loggers = [logging.getLogger("boto3"), logging.getLogger("s3transfer")]
|
warning_loggers = [logging.getLogger("boto3"), logging.getLogger("s3transfer")]
|
||||||
for logger_instance, handler in product(warning_loggers, handlers):
|
for logger_instance, handler in product(warning_loggers, handlers):
|
||||||
logger_instance.addHandler(handler)
|
logger_instance.addHandler(handler)
|
||||||
|
|||||||
Reference in New Issue
Block a user