1
0
Fork 0
mirror of synced 2024-09-04 11:41:24 +12:00

Add default process.stdout if no dev

This commit is contained in:
Adria Navarro 2023-07-21 14:26:57 +02:00
parent 2dcb1a67a1
commit 0ac639fe7a

View file

@ -35,9 +35,9 @@ if (!env.DISABLE_PINO_LOGGER) {
const destinations: pino.DestinationStream[] = [] const destinations: pino.DestinationStream[] = []
if (env.isDev()) { destinations.push(
destinations.push(pinoPretty({ singleLine: true })) env.isDev() ? pinoPretty({ singleLine: true }) : process.stdout
} )
if (env.SELF_HOSTED) { if (env.SELF_HOSTED) {
destinations.push(localFileDestination()) destinations.push(localFileDestination())