[Init] Add version logging and config loading

This commit is contained in:
Ducko 2021-12-09 19:27:06 +00:00
parent 304649193a
commit 7f78bc8d9a

View file

@ -1,7 +1,14 @@
const log = require('./utils/log');
global.log = log; // Make log global for easy usage everywhere
log('', 'Initing...');
const package = require('./package.json');
log('Init', 'OpenAsar v' + package.version);
const appSettings = require('./appSettings');
global.oaConfig = appSettings.getSettings().get('openasar', {});
log('Init', 'Loaded config', oaConfig);
const bootstrap = require('./bootstrap');