mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
🧪 Hide logging during tests
This commit is contained in:
@@ -14,7 +14,9 @@ config.getEnv = config.get;
|
|||||||
// optional configuration files
|
// optional configuration files
|
||||||
if (process.env.N8N_CONFIG_FILES !== undefined) {
|
if (process.env.N8N_CONFIG_FILES !== undefined) {
|
||||||
const configFiles = process.env.N8N_CONFIG_FILES.split(',');
|
const configFiles = process.env.N8N_CONFIG_FILES.split(',');
|
||||||
|
if (process.env.NODE_ENV !== 'test') {
|
||||||
console.log(`\nLoading configuration overwrites from:\n - ${configFiles.join('\n - ')}\n`);
|
console.log(`\nLoading configuration overwrites from:\n - ${configFiles.join('\n - ')}\n`);
|
||||||
|
}
|
||||||
|
|
||||||
config.loadFile(configFiles);
|
config.loadFile(configFiles);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user