From b336180ae09f1dff368e5d7021c1876cbc2d01d6 Mon Sep 17 00:00:00 2001 From: Ali Mahdavi Date: Mon, 10 Jun 2024 13:54:28 +0300 Subject: [PATCH] debug --- ClusterOperator/Operator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ClusterOperator/Operator.js b/ClusterOperator/Operator.js index b6e450c..b0d016f 100644 --- a/ClusterOperator/Operator.js +++ b/ClusterOperator/Operator.js @@ -706,7 +706,7 @@ class Operator { let MasterIP = this.myIP; // ask second candidate for confirmation if (this.masterCandidates.length > 1) MasterIP = await fluxAPI.getMaster(this.masterCandidates[1], config.containerApiPort); - + log.info(`asking second candidate for confirmation: ${MasterIP}`); if (MasterIP === this.myIP) { this.IamMaster = true; this.masterNode = this.myIP; @@ -761,6 +761,7 @@ class Operator { * [getMaster] */ static getMaster() { + log.debug(`master node:${this.masterNode}`); if (this.masterNode === null) { if (this.masterCandidates.length) { return this.masterCandidates[0];