diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c9bed0..0535634 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - env list in doc - version env variable for yarn +- path argument error (https://github.com/ohmyform/ohmyform/issues/149) ### Security diff --git a/src/app.imports.ts b/src/app.imports.ts index 133c767..9fbe32d 100644 --- a/src/app.imports.ts +++ b/src/app.imports.ts @@ -21,13 +21,13 @@ export const LoggerConfig: LoggerModuleParams = { serializers: { error: serializeError, }, - transport: { + transport: process.env.NODE_ENV !== 'production' || process.env.CLI ? { options: { ignore: 'req,res,pid,hostname', translateTime: true, }, - target: process.env.NODE_ENV !== 'production' || process.env.CLI ? 'pino-pretty' : undefined, - }, + target: 'pino-pretty', + } : undefined, }, exclude: [ {