Skip to content

Commit 188294c

Browse files
Prevent sysMessages from being in ZWED5051I message
Signed-off-by: 1000TurquoisePogs <[email protected]>
1 parent b430349 commit 188294c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to the Zlux App Server package will be documented in this file.
44

5+
## v2.18.4
6+
- 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. [(#353)](https://github.com/zowe/zlux-app-server/pull/353)
7+
58
## v2.18.1
69
- Bugfix: app-server no longer causes Zowe to print "FSUM7422 node is not found" and "Node found in NODE_HOME" upon startup. This avoids confusion about if node requirements are met. (#324)
710
- Bugfix: Configuration property "components.app-server.node.mediationLayer.eureka" was not documented in the schema, so it was not possible to set in configuration (#334)

lib/zluxArgs.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ if(process.env.overrideFileConfig !== "false"){
5959
const envConfig = argParser.environmentVarsToObject("ZWED_");
6060
if (Object.keys(envConfig).length > 0) {
6161
if (cluster.isMaster) {
62-
console.log('\nZWED5015I - Processed environment variables:\n'+JSON.stringify(envConfig, null, 2));
62+
let envConfigSafeToPrint = Object.assign({}, envConfig);
63+
if (envConfigSafeToPrint.zowe.sysMessages) {
64+
delete envConfigSafeToPrint.zowe.sysMessages;
65+
}
66+
console.log('\nZWED5015I - Processed environment variables:\n'+JSON.stringify(envConfigSafeToPrint, null, 2));
6367
}
6468
configJSON = Object.assign(configJSON, {components: {"app-server": mergeUtils.deepAssign(configJSON.components['app-server'], envConfig) } });
6569
}

0 commit comments

Comments
 (0)