Fixing more Logging Problems

This commit is contained in:
Luis Fernando Molina committed 2018-06-04 12:45:09 +02:00
1 parent 67d1171511
commit 6b60bd9806
4 files changed
+225 -95

No files matched your search

+6 -4
View File
@@ -24,15 +24,15 @@
let blobContent = "[";
let disableCloudLogging;
let disableLogging;
return thisObject;
function initialize(pDisableCloudLogging) {
function initialize(pdisableLogging) {
disableCloudLogging = pDisableCloudLogging
disableLogging = pdisableLogging
if (disableCloudLogging !== true) {
if (disableLogging !== true) {
thisObject.bot.eventHandler.listenToEvent("Close Log File", onLoopFinished);
}
}
@@ -129,6 +129,8 @@
try {
if (disableLogging === true) { return; }
console.log("AACloud" + spacePad(thisObject.fileName, 50) + " : " + Message);
if (thisObject.bot === undefined) { return; }