Przeglądaj źródła

fix(core): Downgrade ForbiddenError from Error to Warn log level

Closes #2383. Since this error occurs in expected circumstances, it should not be logged at the
error level.
Michael Bromley 2 lat temu
rodzic
commit
c1863923e6
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/core/src/common/error/errors.ts

+ 1 - 1
packages/core/src/common/error/errors.ts

@@ -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);
     }
 }