diff --git a/app.js b/app.js index 46f9367..b2fb18a 100644 --- a/app.js +++ b/app.js @@ -35,7 +35,9 @@ if(env_missing) process.exit(); global['modules'].events = load('events'); // event handler global['modules'].cli = load('cli'); // command line interface + global['modules'].logs = load('logs'); // log handler +global['logs'] = global['modules'].logs; // alias global['modules'].database = load('database'); // database service global['modules'].web = load('web'); // web server diff --git a/bin/cli/cmds/print_cached_log.js b/bin/cli/cmds/print_cached_log.js index 39e5feb..485552a 100644 --- a/bin/cli/cmds/print_cached_log.js +++ b/bin/cli/cmds/print_cached_log.js @@ -8,7 +8,7 @@ module.exports = { 'command': 'logs', 'description': 'output logs', 'action': (args, cb) => { - this.log(JSON.stringify(global['gds'].cache.logs)); + console.log(JSON.stringify(global['gds'].cache.logs)); cb(); } }; diff --git a/bin/config.js b/bin/config.js index f99b541..c1022eb 100644 --- a/bin/config.js +++ b/bin/config.js @@ -22,7 +22,7 @@ module.exports = { poweredBy: 'authRXBN.js', sessionKey: require('crypto').randomBytes(32).toString('hex'), cookieKey: require('crypto').randomBytes(32).toString('hex'), - registration: true, // false -> no registration + registration: false, // false -> no registration rememberMeMaxAge: 1000*60*60 // two weeks (milliseconds*seconds*minutes) }, app: {