From 41c89d1b1d6a93bdfce43968280fa1388fbc5c24 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 22 May 2018 09:43:28 +0200 Subject: [PATCH] storage API changes --- Context.js | 2 +- DataSet.js | 2 +- DebugLog.js | 2 +- Root.js | 10 +++++----- StatusReport.js | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Context.js b/Context.js index f21f043a0..42f2a7da4 100644 --- a/Context.js +++ b/Context.js @@ -111,7 +111,7 @@ function initializeStorage() { - cloudStorage.initialize(bot, onInizialized); + cloudStorage.initialize(bot.devTeam, onInizialized); function onInizialized(err) { diff --git a/DataSet.js b/DataSet.js index 84d45d40b..ef6692acc 100644 --- a/DataSet.js +++ b/DataSet.js @@ -45,7 +45,7 @@ function initializeStorage() { - cloudStorage.initialize(dependencyConfig, onInizialized); + cloudStorage.initialize(dependencyConfig.devTeam, onInizialized); function onInizialized(err) { diff --git a/DebugLog.js b/DebugLog.js index 352bf8719..bbda34ed6 100644 --- a/DebugLog.js +++ b/DebugLog.js @@ -43,7 +43,7 @@ const BLOB_STORAGE = require(ROOT_DIR + 'BlobStorage'); let cloudStorage = BLOB_STORAGE.newBlobStorage(thisObject.bot); - cloudStorage.initialize(thisObject.bot, onInizialized, true); + cloudStorage.initialize(thisObject.bot.devTeam, onInizialized, true); function onInizialized(err) { diff --git a/Root.js b/Root.js index 789505d4f..526e22e42 100644 --- a/Root.js +++ b/Root.js @@ -208,7 +208,7 @@ exports.newRoot = function newRoot() { function findProcess() { try { - console.log("[INFO] Root -> start -> findProcess -> Entering function. "); + if (FULL_LOG === true) { logger.write("[INFO] Root -> start -> findProcess -> Entering function. "); } botConfig.process = listItem.process; botConfig.debug = {}; @@ -221,14 +221,14 @@ exports.newRoot = function newRoot() { botConfig.loopCounter = 0; - if (FULL_LOG === true) { logger.write("[INFO] Root -> Processing item from executionList -> p = " + p); } - if (FULL_LOG === true) { logger.write("[INFO] Root -> listItem.botPath = " + listItem.botPath); } + if (FULL_LOG === true) { logger.write("[INFO] Root -> start -> findProcess -> Processing item from executionList -> p = " + p); } + if (FULL_LOG === true) { logger.write("[INFO] Root -> start -> findProcess -> listItem.botPath = " + listItem.botPath); } /* File Path Root */ botConfig.filePathRoot = botConfig.devTeam + "/" + botConfig.codeName + "." + botConfig.version.major + "." + botConfig.version.minor + "/" + global.PLATFORM_CONFIG.codeName + "." + global.PLATFORM_CONFIG.version.major + "." + global.PLATFORM_CONFIG.version.minor + "/" + global.EXCHANGE_NAME + "/" + botConfig.dataSetVersion; - if (FULL_LOG === true) { logger.write("[INFO] Root -> listItem.process = " + listItem.process); } + if (FULL_LOG === true) { logger.write("[INFO] Root -> start -> findProcess -> listItem.process = " + listItem.process); } /* Now we loop throug all the configured processes at each bots configuration until we find the one we are supposed to run at this Node.js process. */ @@ -239,7 +239,7 @@ exports.newRoot = function newRoot() { if (botConfig.processes[i].name === listItem.process) { processFound = true; - if (FULL_LOG === true) { logger.write("[INFO] Root -> Process found at the bot configuration file. -> listItem.process = " + listItem.process); } + if (FULL_LOG === true) { logger.write("[INFO] Root -> start -> findProcess -> Process found at the bot configuration file. -> listItem.process = " + listItem.process); } let processConfig = botConfig.processes[i]; diff --git a/StatusReport.js b/StatusReport.js index 819e88f88..b3d2c2451 100644 --- a/StatusReport.js +++ b/StatusReport.js @@ -68,7 +68,7 @@ function initializeStorage() { - cloudStorage.initialize(owner, onInizialized); + cloudStorage.initialize(owner.devTeam, onInizialized); function onInizialized(err) {