Fix logging in

This commit is contained in:
Tulir Asokan 2018-12-08 13:57:04 +02:00
parent d09dd8ddc6
commit 67a4e85406

View file

@ -29,7 +29,7 @@ log = logging.getLogger("maubot.server")
@web.middleware @web.middleware
async def auth(request: web.Request, handler: Handler) -> web.Response: async def auth(request: web.Request, handler: Handler) -> web.Response:
subpath = request.path.lstrip(get_config()["server.base_path"]) subpath = request.path.lstrip(get_config()["server.base_path"])
if subpath.startswith("/auth/") or subpath == "/logs" or subpath == "logs": if subpath.startswith("auth/") or subpath == "logs":
return await handler(request) return await handler(request)
err = check_token(request) err = check_token(request)
if err is not None: if err is not None: