debug: Remove user agent from access log messages
This commit is contained in:
3
debug.py
3
debug.py
@@ -23,12 +23,15 @@ class DebugApplication(object):
|
||||
|
||||
class Server(gunicorn.app.base.BaseApplication):
|
||||
|
||||
ACCESS_LOG_FORMAT = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s"'
|
||||
|
||||
def load_config(self):
|
||||
self.cfg.set('bind', '[::]:8080')
|
||||
self.cfg.set('reload', True)
|
||||
self.cfg.set('workers', 1)
|
||||
self.cfg.set('threads', 1)
|
||||
self.cfg.set('accesslog', '-')
|
||||
self.cfg.set('access_log_format', self.ACCESS_LOG_FORMAT)
|
||||
self.cfg.set('timeout', 9001)
|
||||
|
||||
def load(self):
|
||||
|
||||
Reference in New Issue
Block a user