Reduce cluster logging on quit (#4935)

This commit is contained in:
Sebastian Malton committed 2022-03-01 10:58:35 -05:00
1 parent 46772e2bc7
commit 71b98ab57a
1 file changed
+5 -1
+5 -1
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();