tsc
This commit is contained in:
@@ -43,7 +43,7 @@ class Logger {
|
|||||||
warn(message: string, extra?: Extra) {
|
warn(message: string, extra?: Extra) {
|
||||||
if (env.SENTRY_DSN) {
|
if (env.SENTRY_DSN) {
|
||||||
Sentry.withScope(function (scope) {
|
Sentry.withScope(function (scope) {
|
||||||
scope.setLevel(Sentry.Severity.Warning);
|
scope.setLevel("warning");
|
||||||
|
|
||||||
for (const key in extra) {
|
for (const key in extra) {
|
||||||
scope.setExtra(key, extra[key]);
|
scope.setExtra(key, extra[key]);
|
||||||
@@ -66,7 +66,7 @@ class Logger {
|
|||||||
error(message: string, error: Error, extra?: Extra) {
|
error(message: string, error: Error, extra?: Extra) {
|
||||||
if (env.SENTRY_DSN) {
|
if (env.SENTRY_DSN) {
|
||||||
Sentry.withScope(function (scope) {
|
Sentry.withScope(function (scope) {
|
||||||
scope.setLevel(Sentry.Severity.Error);
|
scope.setLevel("error");
|
||||||
|
|
||||||
for (const key in extra) {
|
for (const key in extra) {
|
||||||
scope.setExtra(key, extra[key]);
|
scope.setExtra(key, extra[key]);
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ class Logger {
|
|||||||
|
|
||||||
if (env.SENTRY_DSN) {
|
if (env.SENTRY_DSN) {
|
||||||
Sentry.withScope(function (scope) {
|
Sentry.withScope(function (scope) {
|
||||||
scope.setLevel(Sentry.Severity.Warning);
|
scope.setLevel("warning");
|
||||||
|
|
||||||
for (const key in extra) {
|
for (const key in extra) {
|
||||||
scope.setExtra(key, extra[key]);
|
scope.setExtra(key, extra[key]);
|
||||||
@@ -117,7 +117,7 @@ class Logger {
|
|||||||
|
|
||||||
if (env.SENTRY_DSN) {
|
if (env.SENTRY_DSN) {
|
||||||
Sentry.withScope(function (scope) {
|
Sentry.withScope(function (scope) {
|
||||||
scope.setLevel(Sentry.Severity.Error);
|
scope.setLevel("error");
|
||||||
|
|
||||||
for (const key in extra) {
|
for (const key in extra) {
|
||||||
scope.setExtra(key, extra[key]);
|
scope.setExtra(key, extra[key]);
|
||||||
|
|||||||
Reference in New Issue
Block a user