updated documentation folder
This commit is contained in:
@@ -46,8 +46,10 @@ max_requests_jitter = int(os.getenv("GUNICORN_MAX_REQUESTS_JITTER", "100"))
|
||||
# LOGGING CONFIGURATION
|
||||
# ============================================================================
|
||||
# Docker-friendly: logs to stdout/stderr by default, but allow file logging
|
||||
accesslog = os.getenv("GUNICORN_ACCESS_LOG", "/srv/quality_recticel/logs/access.log")
|
||||
errorlog = os.getenv("GUNICORN_ERROR_LOG", "/srv/quality_recticel/logs/error.log")
|
||||
# Automatically detect the correct log path based on current directory
|
||||
default_log_dir = "/srv/quality_app/logs" if "/srv/quality_app" in os.getcwd() else "/srv/quality_recticel/logs"
|
||||
accesslog = os.getenv("GUNICORN_ACCESS_LOG", f"{default_log_dir}/access.log")
|
||||
errorlog = os.getenv("GUNICORN_ERROR_LOG", f"{default_log_dir}/error.log")
|
||||
|
||||
# For pure Docker logging (12-factor app), use:
|
||||
# accesslog = "-" # stdout
|
||||
@@ -162,4 +164,4 @@ def worker_abort(worker):
|
||||
|
||||
def child_exit(server, worker):
|
||||
"""Called just after a worker has been exited, in the master process."""
|
||||
server.log.info("👋 Worker %s exited (exit code: %s)", worker.pid, worker.tmp.last_mtime)
|
||||
server.log.info("👋 Worker %s exited", worker.pid)
|
||||
Reference in New Issue
Block a user