Add default process.stdout if no dev
This commit is contained in:
parent
2dcb1a67a1
commit
0ac639fe7a
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue