File tree Expand file tree Collapse file tree 2 files changed +19
-10
lines changed
Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @livekit/rtc-node " : patch
3+ ---
4+
5+ Temporarily disable pino-pretty transport
Original file line number Diff line number Diff line change @@ -8,17 +8,21 @@ const isProduction = process.env.NODE_ENV === 'production';
88
99const defaultOptions : LoggerOptions = { name : 'lk-rtc' } ;
1010
11- const devOptions : LoggerOptions = {
12- ...defaultOptions ,
13- transport : {
14- target : 'pino-pretty' ,
15- options : {
16- colorize : true ,
17- } ,
18- } ,
19- } ;
11+ /**
12+ * temporarily disabling the transport option as there might be a memory leak in some corner cases related to it
13+ * see https://github.com/pinojs/pino/issues/2370
14+ */
15+ // const devOptions: LoggerOptions = {
16+ // ...defaultOptions,
17+ // transport: {
18+ // target: 'pino-pretty',
19+ // options: {
20+ // colorize: true,
21+ // },
22+ // },
23+ // };
2024
21- const log = pino ( isProduction ? defaultOptions : devOptions ) ;
25+ const log = pino ( defaultOptions ) ;
2226log . level = isProduction ? 'info' : 'debug' ;
2327
2428export type LogLevel = LevelWithSilent ;
You can’t perform that action at this time.
0 commit comments