More logs adjustments

This commit is contained in:
Luis Fernando Molina committed 2018-03-09 09:11:03 +01:00
1 parent 1161832511
commit 8a0020ab84
3 files changed
+8 -3

No files matched your search

Binary file not shown.
+5 -1
View File
@@ -2,6 +2,7 @@
exports.newAzureFileStorage = function newAzureFileStorage(BOT) {
const FULL_LOG = true;
const LOG_FILE_CONTENT = false;
let bot = BOT;
const ROOT_DIR = './';
@@ -225,10 +226,13 @@ exports.newAzureFileStorage = function newAzureFileStorage(BOT) {
if (FULL_LOG === true) {
logger.write("[INFO] getTextFile -> onFileReceived -> Response from Azure received.");
logger.write("[INFO] getTextFile -> onFileReceived -> err = " + JSON.stringify(err));
logger.write("[INFO] getTextFile -> onFileReceived -> text = " + text);
logger.write("[INFO] getTextFile -> onFileReceived -> response = " + JSON.stringify(response));
}
if (LOG_FILE_CONTENT === true) {
logger.write("[INFO] getTextFile -> onFileReceived -> text = " + text);
}
if (err) {
if (err.message.indexOf("The server is busy") > 0) {
+3 -2
View File
@@ -1,6 +1,7 @@
exports.newContext = function newContext(BOT, DEBUG_MODULE, FILE_STORAGE, UTILITIES) {
const FULL_LOG = true;
const LOG_FILE_CONTENT = false;
/*
@@ -213,7 +214,7 @@
return;
}
if (FULL_LOG === true) {
if (LOG_FILE_CONTENT === true) {
logger.write("[INFO] initialize -> getExecutionHistory -> onFileReceived -> Content received = " + text);
}
@@ -480,7 +481,7 @@
return;
}
if (FULL_LOG === true) {
if (LOG_FILE_CONTENT === true) {
logger.write("[INFO] saveThemAll -> writeExucutionHistory -> onFolderCreated -> onFileCreated -> Content written = " + fileContent);
}