1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

better log line when quitting Lens

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
Sebastian Malton 2020-06-16 11:52:36 -04:00
parent 55687b7d35
commit 1801f0317e

View File

@ -45,7 +45,12 @@ export class KubeAuthProxy {
env: this.env
})
this.proxyProcess.on("exit", (code) => {
logger.error(`proxy ${this.cluster.contextName} exited with code ${code}`)
if (code) {
logger.error(`proxy ${this.cluster.contextName} exited with code ${code}`)
} else {
logger.info(`proxy ${this.cluster.contextName} exited successfully`)
}
this.sendIpcLogMessage( `proxy exited with code ${code}`, "stderr").catch((err: Error) => {
logger.debug("failed to send IPC log message: " + err.message)
})