zowe / explorer-ui-server

Simple HTTPS web server, used by explorer UI plugins
Eclipse Public License 2.0
0 stars 2 forks source link

No guaranteed logs when using Node v12 #41

Open NakulManchanda opened 4 years ago

NakulManchanda commented 4 years ago

We have client logs, where client is using Node v12 and above and we could not find logs statement from explorer-ui-server It writes logs to stdout, which should show up in JOB logs Problem - we cannot find out when explorer-ui-server starts or crashes if it does not output log to job logs

Success Messages [JES] is started and listening on 8546... [MVS] is started and listening on 8548... [USS] is started and listening on 8550...

Failure message phrases failed to exception thrown cannot load

NakulManchanda commented 4 years ago

@jackjia-ibm @NayerNajafi what do you think? One possibility is to start writing to some file $INSTANCE_DIR/logs in addition to stdout

jackjia-ibm commented 4 years ago

I would like to investigate more regarding the differences of node versions (v12.15.0 vs others) and understand the cause. We write logs with process.stdout.write or process.stderr.write functions and I think it's proper way already. The logs shouldn't disappear without a reason.