Update logger.ts

This commit is contained in:
Henry Heng
2023-07-03 22:23:54 +01:00
committed by GitHub
parent 89511c8395
commit ec777c65ea
+1 -1
View File
@@ -7,7 +7,7 @@ import { NextFunction, Request, Response } from 'express'
const { combine, timestamp, printf } = format
// expect the log dir be relative to the projects root
const logDir = path.join(__dirname, '../../../..', config.logging.dir ?? './logs')
const logDir = config.logging.dir
// Create the log directory if it doesn't exist
if (!fs.existsSync(logDir)) {