Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1350 adds logs ihe #1772

Draft
wants to merge 12 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
fix(ihe): remove loop log gw
  • Loading branch information
Orta21 committed Mar 15, 2024
commit 7b0f4f8827b4f1f0562b0d09fea7dd7c0c08d635
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ if (json) {

// Pass to the XCPD Interface channel to process
if (0 == errorCount) {
logger.info(entryLogMessage + 'entry: ' + JSON.stringify(entry));
var result = router.routeMessageByChannelId(globalMap.get('XCAITI38INTERFACE'), JSON.stringify(entry, null, 2));

} else {
logger.error(entryLogMessage + 'error: ' + errorCount.toString() + ' error(s) is/are found in the entries');
channelMap.put("responseCode", "400");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ if (json) {

// Pass to the XCPD Interface channel to process
if (0 == errorCount) {
logger.info(entryLogMessage + 'entry: ' + JSON.stringify(entry));
var result = router.routeMessageByChannelId($g('XCAITI39Interface'), JSON.stringify(entry, null, 2));

} else {
logger.error(entryLogMessage + 'error: ' + errorCount.toString() + ' error(s) is/are found in the entries');
channelMap.put("responseCode", "400");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ if (json) {

// Pass to the XCPD Interface channel to process
if (0 == errorCount) {
logger.info(entryLogMessage + 'entry: ' + JSON.stringify(entry));
var result = router.routeMessageByChannelId($g('XCPDINTERFACE'), JSON.stringify(entry));
} else {
logger.error(entryLogMessage + 'error: ' + errorCount.toString() + ' error(s) is/are found in the entries');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ xcpdArray.forEach(function(entry) {
delete jsonXCPD.gateways;

if (0 == errorCount) {
logger.info(baseLogMessage + 'gateway: ' + JSON.stringify(jsonXCPD));
var result = router.routeMessageByChannelId($g("ITI55PROCESSOR"), JSON.stringify(jsonXCPD));
} else {
channelMap.put(
Expand All @@ -38,7 +37,7 @@ xcpdArray.forEach(function(entry) {
);
}
} catch (ex) {
logger.error(baseLogMessage + 'error: ' + ex);
logger.error(baseLogMessage + 'gw: ' + JSON.stringify(entry) + ', ' + 'error: ' + ex);
}
});

Expand Down
Loading