fix log files disable

This commit is contained in:
Evert Prants 2021-07-10 10:52:04 +03:00
parent 6d8a1a959c
commit 0cb08ca596
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -35,7 +35,8 @@ export class Logger {
static fromEnvironment(): Logger {
const logsPath = path.resolve(process.env.LOG_DIR || 'logs');
const enableFileLog = process.env.LOG_FILES === "true" || true;
const enableFileLog = process.env.LOG_FILES
? process.env.LOG_FILES === "true" : true;
return new Logger(logsPath, enableFileLog);
}