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