mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
log configuration file paths when loading
This commit is contained in:
parent
79ff245aa4
commit
1a414f1cfb
1 changed files with 4 additions and 1 deletions
|
@ -379,7 +379,10 @@ export function loadConfig(): Config {
|
||||||
process.env['MK_WARNED_ABOUT_CONFIG'] = '1';
|
process.env['MK_WARNED_ABOUT_CONFIG'] = '1';
|
||||||
}
|
}
|
||||||
|
|
||||||
const config = configFiles.map(path => fs.readFileSync(path, 'utf-8'))
|
const config = configFiles.map(path => {
|
||||||
|
console.log(`Reading configuration from ${path}`);
|
||||||
|
return fs.readFileSync(path, 'utf-8');
|
||||||
|
})
|
||||||
.map(contents => yaml.load(contents) as Source)
|
.map(contents => yaml.load(contents) as Source)
|
||||||
.reduce(
|
.reduce(
|
||||||
(acc: Source, cur: Source) => Object.assign(acc, cur),
|
(acc: Source, cur: Source) => Object.assign(acc, cur),
|
||||||
|
|
Loading…
Add table
Reference in a new issue