More logs adjustments
This commit is contained in:
1 parent
1161832511
commit
8a0020ab84
3 files changed
+8
-3
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user