From e8cb6276dc59e2f5f19a158ece10c936a6abc4ea Mon Sep 17 00:00:00 2001
From: Brian Christiansen <brian@schedmd.com>
Date: Wed, 13 May 2015 13:46:19 -0700
Subject: [PATCH] Additional debugging.

---
 src/common/slurm_protocol_api.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/common/slurm_protocol_api.c b/src/common/slurm_protocol_api.c
index 29b3dc30442..f951404abed 100644
--- a/src/common/slurm_protocol_api.c
+++ b/src/common/slurm_protocol_api.c
@@ -2564,8 +2564,10 @@ slurm_fd_t slurm_open_controller_conn(slurm_addr_t *addr)
 			if (have_backup) {
 				fd = slurm_open_msg_conn(&myproto->
 							 secondary_controller);
-				if (fd >= 0)
+				if (fd >= 0) {
+					debug("Contacted secondary controller");
 					goto end_it;
+				}
 				debug("Failed to contact secondary "
 				      "controller: %m");
 			}
-- 
GitLab