Logging functionality re-written, all modules affected
This commit is contained in:
1 parent
f1d3be68af
commit
ea190f6754
1 file changed
+3
-9
@@ -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."); }
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user