move logging into debug environment variable .. sighs

pull/2295/head
John McLear 2014-11-04 18:32:26 +00:00
parent 5d0ccb5f8f
commit cb28d10963
1 changed files with 1 additions and 0 deletions

View File

@ -228,6 +228,7 @@ exports.reloadSettings = function reloadSettings() {
log4js.configure(exports.logconfig);//Configure the logging appenders log4js.configure(exports.logconfig);//Configure the logging appenders
log4js.setGlobalLogLevel(exports.loglevel);//set loglevel log4js.setGlobalLogLevel(exports.loglevel);//set loglevel
process.env['DEBUG'] = 'socket.io:' + exports.loglevel; // Used by SocketIO for Debug
log4js.replaceConsole(); log4js.replaceConsole();
if(!exports.sessionKey){ // If the secretKey isn't set we also create yet another unique value here if(!exports.sessionKey){ // If the secretKey isn't set we also create yet another unique value here