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:
parent
55687b7d35
commit
1801f0317e
@ -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)
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user