Reduce cluster logging on quit

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-02-25 11:03:07 -05:00
1 parent 8524f9d244
commit 0344d65143
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();