Skip to content

Commit 261e095

Browse files
committed
fix(pino): update log destination usage
1 parent 3e2f7f4 commit 261e095

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/express-app/app.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,17 @@ export async function startApp<
5353
minLength: process.env.LOG_BUFFER ? Number(process.env.LOG_BUFFER) : undefined,
5454
});
5555
const logger = shouldPrettyPrint
56-
? pino({
57-
transport: {
58-
destination,
59-
target: 'pino-pretty',
60-
options: {
61-
colorize: true,
56+
? pino(
57+
{
58+
transport: {
59+
target: 'pino-pretty',
60+
options: {
61+
colorize: true,
62+
},
6263
},
6364
},
64-
})
65+
destination,
66+
)
6567
: pino(
6668
{
6769
formatters: {

0 commit comments

Comments
 (0)