Logging functionality re-written, all modules affected

This commit is contained in:
Luis Fernando Molina committed 2018-06-06 16:28:23 +02:00
1 parent f1d3be68af
commit ea190f6754
1 file changed
+3 -9
+3 -9
View File
@@ -1,16 +1,10 @@
exports.newUserBot = function newUserBot(BOT, DEBUG_MODULE) {
exports.newUserBot = function newUserBot(bot, logger) {
const FULL_LOG = true;
let bot = BOT;
const MODULE_NAME = 'UserBot';
const MODULE_NAME = 'User Bot';
const LOG_INFO = true;
const logger = DEBUG_MODULE.newDebugLog();
logger.fileName = MODULE_NAME;
logger.bot = bot;
let thisObject = {
initialize: initialize,
start: start
@@ -58,7 +52,7 @@
if (global.AT_BREAKPOINT === true) {
if (FULL_LOG === true) { logger.write("[INFO] run -> loop -> Plot Breakpoint Hit."); }
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] run -> loop -> Plot Breakpoint Hit."); }
}