Skip to content

Commit 649d093

Browse files
Merge pull request #352 from zowe/bugfix/v3/dont-double-print-sysmessages
Prevent sysMessages from being in ZWED5018I message
2 parents 8cc2a4e + ba95ee7 commit 649d093

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to the Zlux App Server package will be documented in this fi
44

55
## v3.4.0
66
- Enhancement: Added new flag in zowe.yaml 'enablePasswordChange' which controls the access to 'Change Password' tool in 'Personalization Panel'.
7+
- Bugfix: App-server no longer prints out the contents of "zowe.sysMessages", so that it will not get captured by the syslog messaging system of the launcher. [(#352)](https://github.com/zowe/zlux-app-server/pull/352)
78

89
## v3.3.0
910
- Enhancement: app-server handles the setting "components.apiml.enabled: true" as an alternative to enabling "gateway", "discovery", and "caching-service" components. [(#345)](https://github.com/zowe/zlux-app-server/pull/345)

lib/zluxArgs.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ if(configJSON.components['app-server'].node.noChild === true){
7979
}
8080

8181
if (cluster.isMaster) {
82-
console.log('\nZWED5018I - Initializing with configuration:\n',JSON.stringify(configJSON, null, 2));
82+
let configJSONSafeToPrint = Object.assign({}, configJSON);
83+
if (configJSONSafeToPrint.zowe.sysMessages) {
84+
delete configJSONSafeToPrint.zowe.sysMessages;
85+
}
86+
87+
console.log('\nZWED5018I - Initializing with configuration:\n',JSON.stringify(configJSONSafeToPrint, null, 2));
8388
}
8489
module.exports = function() {
8590
return {configJSON: configJSON, configLocation: userInput.config}

0 commit comments

Comments
 (0)