Skip to content

Commit d36a831

Browse files
committed
fixup add logLevel property
1 parent ef8e127 commit d36a831

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/utils/src/error.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
import type { ConsoleLevel } from './logger';
2+
13
/** An error emitted by Sentry SDKs and related utilities. */
24
export class SentryError extends Error {
35
/** Display name of this error instance. */
46
public name: string;
57

6-
public logLevel: string;
8+
public logLevel: ConsoleLevel;
79

8-
public constructor(public message: string, logLevel: string = 'warn') {
10+
public constructor(public message: string, logLevel: ConsoleLevel = 'warn') {
911
super(message);
1012

1113
this.name = new.target.prototype.constructor.name;

0 commit comments

Comments
 (0)