mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(core): Revert back to console logging in config (no-changelog) (#5319)
broke in https://github.com/n8n-io/n8n/pull/5283
This commit is contained in:
parent
409a9ea357
commit
0de6dc92d7
|
@ -3,7 +3,6 @@ import dotenv from 'dotenv';
|
||||||
import { tmpdir } from 'os';
|
import { tmpdir } from 'os';
|
||||||
import { mkdtempSync, readFileSync } from 'fs';
|
import { mkdtempSync, readFileSync } from 'fs';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import { LoggerProxy as Logger } from 'n8n-workflow';
|
|
||||||
import { schema } from './schema';
|
import { schema } from './schema';
|
||||||
import { inTest, inE2ETests } from '@/constants';
|
import { inTest, inE2ETests } from '@/constants';
|
||||||
|
|
||||||
|
@ -40,7 +39,7 @@ if (!inE2ETests && !inTest) {
|
||||||
const { N8N_CONFIG_FILES } = process.env;
|
const { N8N_CONFIG_FILES } = process.env;
|
||||||
if (N8N_CONFIG_FILES !== undefined) {
|
if (N8N_CONFIG_FILES !== undefined) {
|
||||||
const configFiles = N8N_CONFIG_FILES.split(',');
|
const configFiles = N8N_CONFIG_FILES.split(',');
|
||||||
Logger.debug('Loading config overwrites', configFiles);
|
console.debug('Loading config overwrites', configFiles);
|
||||||
config.loadFile(configFiles);
|
config.loadFile(configFiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +60,7 @@ if (!inE2ETests && !inTest) {
|
||||||
}
|
}
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
Logger.debug('Loading config overwrite', { fileName });
|
console.debug('Loading config overwrite', { fileName });
|
||||||
acc[key] = value;
|
acc[key] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue