mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 21:00:58 +03:00
Update logger.ts
This commit is contained in:
@@ -7,7 +7,7 @@ import { NextFunction, Request, Response } from 'express'
|
|||||||
const { combine, timestamp, printf } = format
|
const { combine, timestamp, printf } = format
|
||||||
|
|
||||||
// expect the log dir be relative to the projects root
|
// 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
|
// Create the log directory if it doesn't exist
|
||||||
if (!fs.existsSync(logDir)) {
|
if (!fs.existsSync(logDir)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user