From 8ec9a0f62d4bf1a8a10609602113941fa48d310b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Tue, 23 Apr 2024 14:48:34 +0200 Subject: [PATCH] chore: remove log (#6911) This log is also not needed because we have the API status code 401 that shows the same data --- src/lib/middleware/api-token-middleware.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/middleware/api-token-middleware.ts b/src/lib/middleware/api-token-middleware.ts index 0fceff28db..bde8fa0315 100644 --- a/src/lib/middleware/api-token-middleware.ts +++ b/src/lib/middleware/api-token-middleware.ts @@ -78,7 +78,6 @@ const apiAccessMiddleware = ( // If we're here, we know that api token middleware was enabled, otherwise we'd returned a no-op middleware // We explicitly only protect client and proxy apis, since admin apis are protected by our permission checker // Reject with 401 - logger.warn(`No user found for token, rejecting`); res.status(401).send({ message: NO_TOKEN_WHERE_TOKEN_WAS_REQUIRED, });