Reduce cluster logging on quit (#4935)

Signed-off-by: DmitriyNoa <dmytro.zharkov@gmail.com>
This commit is contained in:
Sebastian Malton authored and DmitriyNoa committed 2022-03-03 14:40:53 +01:00
1 parent 045456cd7c
commit 54bdf84951
1 file changed
+5 -1
+5 -1
View File
@@ -379,7 +379,11 @@ export class Cluster implements ClusterModel, ClusterState {
/** /**
* @internal * @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 }); logger.info(`[CLUSTER]: disconnecting`, { id: this.id });
this.eventsDisposer(); this.eventsDisposer();
this.contextHandler?.stopServer(); this.contextHandler?.stopServer();