1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

chore: remove log (#6911)

This log is also not needed because we have the API status code 401 that
shows the same data
This commit is contained in:
Gastón Fournier 2024-04-23 14:48:34 +02:00 committed by GitHub
parent 61a689ccc7
commit 8ec9a0f62d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 // 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 // We explicitly only protect client and proxy apis, since admin apis are protected by our permission checker
// Reject with 401 // Reject with 401
logger.warn(`No user found for token, rejecting`);
res.status(401).send({ res.status(401).send({
message: NO_TOKEN_WHERE_TOKEN_WAS_REQUIRED, message: NO_TOKEN_WHERE_TOKEN_WAS_REQUIRED,
}); });