the gunicorn logger has now an hardcoded access log
Dieser Commit ist enthalten in:
Ursprung
28c9c2bb26
Commit
568d0e295a
|
@ -37,6 +37,7 @@ CONFIG_DEFAULTS = {
|
|||
|
||||
|
||||
class Logger(gLogger):
|
||||
access_log_format = "Access(%(s)s) %(r)s"
|
||||
|
||||
def __init__(self, cfg):
|
||||
self.logfile = None
|
||||
|
@ -112,6 +113,6 @@ class Logger(gLogger):
|
|||
extra["USER_AGENT"] = environ.get("HTTP_USER_AGENT")
|
||||
|
||||
try:
|
||||
level(self.cfg.access_log_format, safe_atoms, extra=extra)
|
||||
level(self.access_log_format, safe_atoms, extra=extra)
|
||||
except Exception:
|
||||
self.error(traceback.format_exc())
|
||||
|
|
Laden…
In neuem Issue referenzieren