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

Reduce cluster logging on quit (#4935)

This commit is contained in:
Sebastian Malton 2022-02-28 08:34:45 -05:00 committed by GitHub
parent b65f6e00ec
commit f5a7d64551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,7 +379,11 @@ export class Cluster implements ClusterModel, ClusterState {
/**
* @internal
*/
@action disconnect() {
@action disconnect(): void {
if (this.disconnected) {
return void logger.debug("[CLUSTER]: already disconnected", { id: this.id });
}
logger.info(`[CLUSTER]: disconnecting`, { id: this.id });
this.eventsDisposer();
this.contextHandler?.stopServer();