several: turn off aiohttp access log

It will log arguments, so unless we are certain the arguments are clean
this will cause trouble.  Just turn it off.
This commit is contained in:
Dan Bungert 2023-10-05 17:49:23 -06:00
parent 80b144f220
commit 1da5cac477
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ def bind(router, endpoint, controller, serializer=None, _depth=None):
async def make_server_at_path(socket_path, endpoint, controller, **kw):
app = web.Application(**kw)
bind(app.router, endpoint, controller)
runner = web.AppRunner(app)
runner = web.AppRunner(app, access_log=None)
await runner.setup()
site = web.UnixSite(runner, socket_path)
await site.start()

View File

@ -497,7 +497,7 @@ class SubiquityServer(Application):
bind(app.router, API.dry_run, DryRunController(self))
for controller in self.controllers.instances:
controller.add_routes(app)
runner = web.AppRunner(app, keepalive_timeout=0xFFFFFFFF)
runner = web.AppRunner(app, keepalive_timeout=0xFFFFFFFF, access_log=None)
await runner.setup()
await self.start_site(runner)