From 67a4e8540647900b2d7e51608927d9997b5d4cbf Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 8 Dec 2018 13:57:04 +0200 Subject: [PATCH] Fix logging in --- maubot/management/api/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot/management/api/middleware.py b/maubot/management/api/middleware.py index 7406b61..f5bd1e4 100644 --- a/maubot/management/api/middleware.py +++ b/maubot/management/api/middleware.py @@ -29,7 +29,7 @@ log = logging.getLogger("maubot.server") @web.middleware async def auth(request: web.Request, handler: Handler) -> web.Response: 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) err = check_token(request) if err is not None: