Skip to content

Commit 075c79d

Browse files
committed
This is to resolve conflict
2 parents 3f0ea00 + 5cf6a95 commit 075c79d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

server/app/services/botService.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ botService.executeBots = function executeBots(botsId, reqBody, userName, executi
387387
},
388388
function (scheduledBots, next) {
389389
if (bots.length > 0) {
390-
logger.info("task_id"+taskId+" Got Bots " + JSON.stringify(scheduledBots));
390+
logger.info("Got Bots " + JSON.stringify(scheduledBots));
391391
botId = bots[0]._id;
392392
if (scheduledBots.length > 0) {
393393
//included check for params if empty.
@@ -402,25 +402,25 @@ botService.executeBots = function executeBots(botsId, reqBody, userName, executi
402402
//logger.info("Executing BOTs Deatails", bots[0].execution[0].os, bots[0].execution[0].type);
403403
masterUtil.getBotRemoteServerDetailByOrgId(bots[0].orgId, function (err, botServerDetails) {
404404
if (err) {
405-
logger.error("task_id"+taskId+" Error while fetching BOTs Server Details");
405+
logger.error("Error while fetching BOTs Server Details");
406406
callback(err, null);
407407
return;
408408

409409
} else if (botServerDetails !== null && botServerDetails.length > 0) {
410-
logger.info("task_id"+taskId+" Checking flag status--->", appConfig.enableBotExecuterOsCheck)
410+
logger.info("Checking flag status--->", appConfig.enableBotExecuterOsCheck)
411411
if (bots[0].type === 'blueprints') {
412412
botRemoteServerDetails.hostIP = botServerDetails[0].hostIP;
413413
botRemoteServerDetails.hostPort = botServerDetails[0].hostPort;
414414
} else {
415415
//As env variable will always be in string changed the check value to string
416416
if (appConfig.enableBotExecuterOsCheck === true || process.env.enableBotExecuterOsCheck === 'true') {
417-
logger.info("task_id"+taskId+" Inn OS check condition");
417+
logger.info("Inn OS check condition");
418418
executorOsTypeConditionCheck(botServerDetails, botRemoteServerDetails, bots);
419419
} else {
420420

421421
botRemoteServerDetails.hostIP = botServerDetails[0].hostIP;
422422
botRemoteServerDetails.hostPort = botServerDetails[0].hostPort;
423-
logger.info("task_id"+taskId+" Default Details as working without Multiple executor feature", botRemoteServerDetails.hostIP, botRemoteServerDetails.hostPort);
423+
logger.info("Default Details as working without Multiple executor feature", botRemoteServerDetails.hostIP, botRemoteServerDetails.hostPort);
424424
}
425425
}
426426
encryptedParam(reqBody, next);
@@ -451,15 +451,15 @@ botService.executeBots = function executeBots(botsId, reqBody, userName, executi
451451
if (reqBody.nodeIds) {
452452
botObj.params.nodeIds = reqBody.nodeIds;
453453
}
454-
logger.info("task_id"+taskId+" Updating bot details" + JSON.stringify(botObj));
454+
logger.info("Updating bot details" + JSON.stringify(botObj));
455455
botDao.updateBotsDetail(botId, botObj, next);
456456
},
457457
function (updateStatus, next) {
458458
botDao.getBotsById(botId, next);
459459
},
460460
function (botDetails, next) {
461461
if (botDetails.length > 0) {
462-
logger.info("task_id"+taskId+" Executor in parallel " + JSON.stringify(botDetails));
462+
logger.info("Executor in parallel " + JSON.stringify(botDetails));
463463
async.parallel({
464464
executor: function (callback) {
465465
async.waterfall([
@@ -561,17 +561,17 @@ botService.executeBots = function executeBots(botsId, reqBody, userName, executi
561561
}
562562
});
563563
} else {
564-
logger.info("task_id"+taskId+" No Botdetails found ");
564+
logger.info("No Botdetails found ");
565565
next(null, botDetails);
566566
}
567567
}
568568
], function (err, results) {
569569
if (err) {
570-
logger.error("task_id"+taskId+" "+ err);
570+
logger.error(err);
571571
callback(err, null);
572572
return;
573573
} else {
574-
logger.info("task_id"+taskId+" Completed Bot execution " + JSON.stringify(results));
574+
logger.info("Completed Bot execution " + JSON.stringify(results));
575575
callback(null, results);
576576
return;
577577
}

0 commit comments

Comments
 (0)