This commit is contained in:
Tom Moor
2022-09-30 22:44:13 -04:00
parent 923afad032
commit 4bb2a8ca1c
2 changed files with 4 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ class Logger {
warn(message: string, extra?: Extra) {
if (env.SENTRY_DSN) {
Sentry.withScope(function (scope) {
scope.setLevel(Sentry.Severity.Warning);
scope.setLevel("warning");
for (const key in extra) {
scope.setExtra(key, extra[key]);
@@ -66,7 +66,7 @@ class Logger {
error(message: string, error: Error, extra?: Extra) {
if (env.SENTRY_DSN) {
Sentry.withScope(function (scope) {
scope.setLevel(Sentry.Severity.Error);
scope.setLevel("error");
for (const key in extra) {
scope.setExtra(key, extra[key]);