Skip to content

Commit

Permalink
chore: remove log (#6911)
Browse files Browse the repository at this point in the history
This log is also not needed because we have the API status code 401 that
shows the same data
  • Loading branch information
gastonfournier authored Apr 23, 2024
1 parent 61a689c commit 8ec9a0f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/middleware/api-token-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 8ec9a0f

Please sign in to comment.