From 4875fad4078e21a934d161a240d321da20a290f2 Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Thu, 7 Jul 2022 10:58:19 +1000 Subject: [PATCH] chore(web): ts-ignore for downlevel Sentry calls --- common/core/web/tools/sentry-manager/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/core/web/tools/sentry-manager/src/index.ts b/common/core/web/tools/sentry-manager/src/index.ts index 0361ebbe04..6013a5cf9c 100644 --- a/common/core/web/tools/sentry-manager/src/index.ts +++ b/common/core/web/tools/sentry-manager/src/index.ts @@ -190,6 +190,7 @@ namespace com.keyman { function reportingConsoleError() { let args = Array.prototype.slice.call(arguments); if(_this._enabled) { + //@ts-ignore Sentry.captureException(reduceConsoleArgs(args), { level: 'error' }); } return oldConsoleError.apply(console, args); @@ -200,6 +201,7 @@ namespace com.keyman { function reportingConsoleWarn() { let args = Array.prototype.slice.call(arguments); if(_this._enabled) { + //@ts-ignore Sentry.captureMessage(reduceConsoleArgs(args), { level: 'warning' }); } return oldConsoleWarn.apply(console, args);