From 551b0d515a8706f6ed452b6cef7d819543777c42 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 17 Jul 2023 15:53:53 +0100 Subject: [PATCH] update log path --- README.md | 2 +- packages/server/README.md | 2 +- packages/server/src/utils/config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5023a1b77d5..2c7002d51b4 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ Flowise support different environment variables to configure your instance. You | FLOWISE_USERNAME | Username to login | String | | FLOWISE_PASSWORD | Password to login | String | | DEBUG | Print logs from components | Boolean | -| LOG_PATH | Location where log files are stored | String | `your-path/Flowise/logs` | +| LOG_PATH | Location where log files are stored | String | `your-path/Flowise/packages/server` | | LOG_LEVEL | Different levels of logs | Enum String: `error`, `info`, `verbose`, `debug` | `info` | | DATABASE_PATH | Location where database is saved | String | `your-home-dir/.flowise` | | APIKEY_PATH | Location where api keys are saved | String | `your-path/Flowise/packages/server` | diff --git a/packages/server/README.md b/packages/server/README.md index fb3a0c1236b..087483e1abf 100644 --- a/packages/server/README.md +++ b/packages/server/README.md @@ -39,7 +39,7 @@ Flowise support different environment variables to configure your instance. You | FLOWISE_USERNAME | Username to login | String | | FLOWISE_PASSWORD | Password to login | String | | DEBUG | Print logs from components | Boolean | -| LOG_PATH | Location where log files are stored | String | `your-path/Flowise/logs` | +| LOG_PATH | Location where log files are stored | String | `your-path/Flowise/packages/server` | | LOG_LEVEL | Different levels of logs | Enum String: `error`, `info`, `verbose`, `debug` | `info` | | DATABASE_PATH | Location where database is saved | String | `your-home-dir/.flowise` | | APIKEY_PATH | Location where api keys are saved | String | `your-path/Flowise/packages/server` | diff --git a/packages/server/src/utils/config.ts b/packages/server/src/utils/config.ts index 8540b3b1267..b5f5884ebc2 100644 --- a/packages/server/src/utils/config.ts +++ b/packages/server/src/utils/config.ts @@ -7,7 +7,7 @@ dotenv.config({ path: path.join(__dirname, '..', '..', '.env'), override: true } // default config const loggingConfig = { - dir: process.env.LOG_PATH ?? path.join(__dirname, '..', '..', '..', '..', 'logs'), + dir: process.env.LOG_PATH ?? path.join(__dirname, '..', '..', 'logs'), server: { level: process.env.LOG_LEVEL ?? 'info', filename: 'server.log',