diff --git a/doc/source/python/python_server.md b/doc/source/python/python_server.md index fd696ea682..bd40a397a9 100644 --- a/doc/source/python/python_server.md +++ b/doc/source/python/python_server.md @@ -193,9 +193,9 @@ Python Server can be configured using environmental variables or command line fl | `--threads` | `GUNICORN_THREADS` | `10` | Number of threads to run per Gunicorn worker. | | `--max-requests` | `GUNICORN_MAX_REQUESTS` | `0` | Maximum number of requests gunicorn worker will process before restarting. | | `--max-requests-jitter` | `GUNICORN_MAX_REQUESTS_JITTER` | `0` | Maximum random jitter to add to max-requests. | +| `--access-log` | `GUNICORN_ACCESS_LOG` | `false` | Enable gunicorn access log. | | `--pidfile` | N/A | None | A file path to use for the Gunicorn PID file. | | `--single-threaded` | `FLASK_SINGLE_THREADED` | `0` | Force the Flask app to run single-threaded. Also applies to Gunicorn. Can be `0` or `1`. | | N/A | `FILTER_METRICS_ACCESS_LOGS` | `not debug` | Filter out logs related to Prometheus accessing the metrics port. By default enabled in production and disabled in debug mode. | | N/A | `PREDICTIVE_UNIT_METRICS_ENDPOINT` | `/metrics` | Endpoint name for Prometheus metrics. In k8s deployment default is `/prometheus`. | | N/A | `PAYLOAD_PASSTHROUGH` | `false` | Skip decoding of payloads. | -| `--access-log` | `SELDON_GUNICORN_ACCESS_LOG` | `false` | Enable gunicorn access log. | diff --git a/python/seldon_core/microservice.py b/python/seldon_core/microservice.py index 0f72814e40..bb7b5bb696 100644 --- a/python/seldon_core/microservice.py +++ b/python/seldon_core/microservice.py @@ -40,7 +40,7 @@ DEFAULT_METRICS_PORT = 6000 DEBUG_ENV = "SELDON_DEBUG" -GUNICORN_ACCESS_LOG_ENV = "SELDON_GUNICORN_ACCESS_LOG" +GUNICORN_ACCESS_LOG_ENV = "GUNICORN_ACCESS_LOG" def start_servers(