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
1 changed files with 3 additions and 3 deletions

View File

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