Procházet zdrojové kódy

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 před 2 roky
rodič
revize
c1863923e6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);
     }
 }