[Init] Add version logging and config loading
This commit is contained in:
parent
304649193a
commit
7f78bc8d9a
1 changed files with 8 additions and 1 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue