File tree Expand file tree Collapse file tree 2 files changed +10
-36
lines changed Expand file tree Collapse file tree 2 files changed +10
-36
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,8 +5,11 @@ import * as Sentry from "@sentry/node";
5
5
// @ts -ignore: missing type definitions
6
6
import { dummyLayout } from "log4js/lib/layouts" ;
7
7
8
- import type { SeverityLevel , User } from "@sentry/node/types" ;
9
- import type { NodeClientOptions } from "@sentry/node/types/types" ;
8
+ import type {
9
+ SeverityLevel ,
10
+ User ,
11
+ } from "@sentry/node" ;
12
+ import type { NodeClientOptions } from "@sentry/node/build/types/types" ;
10
13
import type {
11
14
AppenderFunction ,
12
15
LayoutFunction ,
@@ -28,6 +31,10 @@ export interface Config extends Partial<NodeClientOptions> {
28
31
* Sentry user data for scope setting
29
32
*/
30
33
user ?: User ;
34
+ /**
35
+ * Levels to be reported to Sentry.
36
+ */
37
+ levels ?: SentryAppenderLevels [ ] ;
31
38
}
32
39
33
40
declare module "log4js" {
@@ -95,9 +102,9 @@ export function sentry(
95
102
}
96
103
97
104
export class ConfigError extends Error {
98
- override name = "ConfigError" ;
99
105
constructor ( msg : string , cause ?: unknown ) {
100
106
super ( msg ) ;
107
+ this . name = this . constructor . name ;
101
108
this . cause = cause ;
102
109
}
103
110
}
You can’t perform that action at this time.
0 commit comments