Skip to content

Commit 027728f

Browse files
Manuelpotb
authored andcommitted
chore: remove pino-dev
1 parent 36deb7c commit 027728f

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

src/core/logger.ts

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,17 @@
11
import createLogger, { type LoggerOptions } from 'pino';
2-
import type pinodev from 'pino-dev';
32
import type { PrettyOptions } from 'pino-pretty';
43

5-
type PrettyDevOptions = Parameters<typeof pinodev>[0];
6-
type BotLoggerOptions = LoggerOptions &
7-
(
8-
| { transport?: { target: 'pino-dev'; options: PrettyDevOptions } }
9-
| { transport?: { target: 'pino-pretty'; options: PrettyOptions } }
10-
);
4+
type BotLoggerOptions = LoggerOptions & {
5+
transport?: { target: 'pino-pretty'; options: PrettyOptions };
6+
};
117

128
const developmentOptionsOverride: BotLoggerOptions = {
139
transport: {
14-
target: 'pino-dev',
10+
target: 'pino-pretty',
1511
options: {
1612
colorize: true,
17-
// propertyMap: {
18-
// module: '[module]',
19-
// },
2013
},
2114
},
22-
// transport: {
23-
// target: 'pino-pretty',
24-
// options: {
25-
// customPrettifiers: {
26-
// // module: (name) => `[${name}]`,
27-
// },
28-
// },
29-
// },
3015
level: process.env['LOGLEVEL'] ?? 'debug',
3116
};
3217

0 commit comments

Comments
 (0)