fix log files disable
This commit is contained in:
parent
6d8a1a959c
commit
0cb08ca596
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user