Skip to content

Commit ad1ae0b

Browse files
committed
fix: remove debug console.log in API authentication handler
Remove stale console.log('shouldPreventAnonymousRead', ...) statement that runs on every unauthenticated API request in production, adding unnecessary noise to logs and bypassing the structured logging system.
1 parent 3c30636 commit ad1ae0b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

apps/meteor/app/api/server/ApiClass.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,6 @@ export class APIClass<TBasePath extends string = '', TOperations extends Record<
835835
const shouldPreventUserRead = !this.user && options.authRequired;
836836

837837
if (shouldPreventAnonymousRead || shouldPreventUserRead) {
838-
console.log('shouldPreventAnonymousRead', shouldPreventAnonymousRead);
839838
const result = api.unauthorized('You must be logged in to do this.');
840839
// compatibility with the old API
841840
// TODO: MAJOR

0 commit comments

Comments
 (0)