removed the switch if the accesslog is not configured

Dieser Commit ist enthalten in:
Sebastian Tobie 2024-03-10 09:51:00 +01:00
Ursprung 0d4c72f7fc
Commit 1a63825ba6
2 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -11,7 +11,7 @@ from logging.config import dictConfig, fileConfig
from gunicorn.glogging import CONFIG_DEFAULTS
from gunicorn.glogging import Logger as gLogger
__version__ = "0.0.9"
__version__ = "0.0.10"
CONFIG_DEFAULTS = {

Datei anzeigen

@ -65,12 +65,11 @@ class ExtendedGunicornWebWorker(GunicornWebWorker):
)
if runner is None:
access_log = self.log.access_log if self.cfg.accesslog else None
runner = web.AppRunner(
app,
logger=self.log,
keepalive_timeout=self.cfg.keepalive,
access_log=access_log,
access_log=self.log.access_log,
access_log_class=self.access_log_class,
shutdown_timeout=self.cfg.graceful_timeout / 100 * 95,
)