Skip to content

Commit

Permalink
fix(core): Downgrade ForbiddenError from Error to Warn log level
Browse files Browse the repository at this point in the history
Closes #2383. Since this error occurs in expected circumstances, it should not be logged at the
error level.
  • Loading branch information
michaelbromley committed Sep 7, 2023
1 parent e1ff2c7 commit c186392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/common/error/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class UnauthorizedError extends I18nError {
* @docsPage Error Types
*/
export class ForbiddenError extends I18nError {
constructor(logLevel: LogLevel = LogLevel.Error) {
constructor(logLevel: LogLevel = LogLevel.Warn) {
super('error.forbidden', {}, 'FORBIDDEN', logLevel);
}
}
Expand Down

0 comments on commit c186392

Please sign in to comment.