From 37c346efd7e9badb66d18a97384d3fc663ab38e5 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Tue, 13 Jun 2023 17:11:35 -0400 Subject: [PATCH] Less configs to worry about --- .env.default | 2 ++ conf/aether_fastapi_gunicorn_conf.py | 2 +- conf/aether_flask_gunicorn_conf.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.env.default b/.env.default index f71a052..5dc42a1 100644 --- a/.env.default +++ b/.env.default @@ -4,6 +4,8 @@ OSIT_ENV=development # OSIT_ENV=production # OSIT_ENV=testing +AE_LOG_LVL=warning # Python loglevel: warning, info, debug, etc + OSIT_WEB_HTTP_PORT=8080 OSIT_WEB_HTTPS_PORT=4443 diff --git a/conf/aether_fastapi_gunicorn_conf.py b/conf/aether_fastapi_gunicorn_conf.py index 9eba2e4..655c93c 100644 --- a/conf/aether_fastapi_gunicorn_conf.py +++ b/conf/aether_fastapi_gunicorn_conf.py @@ -1,7 +1,7 @@ import os # Gunicorn config variables -loglevel = "debug" +loglevel = os.getenv('AE_LOG_LVL', 'warning') accesslog = "/logs/gunicorn_access.log" # "-" # stdout errorlog = "/logs/gunicorn_error.log" # "-" # stderr diff --git a/conf/aether_flask_gunicorn_conf.py b/conf/aether_flask_gunicorn_conf.py index a96da00..31ba4ba 100644 --- a/conf/aether_flask_gunicorn_conf.py +++ b/conf/aether_flask_gunicorn_conf.py @@ -1,7 +1,7 @@ import os # Gunicorn config variables -loglevel = "debug" +loglevel = os.getenv('AE_LOG_LVL', 'warning') # accesslog = "/logs/gunicorn_access.log" # "-" # stdout errorlog = "/logs/gunicorn_error.log" # "-" # stderr