From 362b8a94c0ffaa63af3a5a5772c29303be009640 Mon Sep 17 00:00:00 2001 From: Fabiano FidĂȘncio Date: Mon, 28 Aug 2017 13:17:49 +0200 Subject: SDAP: Add a debug message to explain why a backend was marked offline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This new debug message may help us when debugging the cases where a backend was marked offline but it shouldn't be. Related: https://pagure.io/SSSD/sssd/issue/2976 Signed-off-by: Fabiano FidĂȘncio Reviewed-by: Jakub Hrozek --- src/providers/ldap/sdap_id_op.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/providers/ldap/sdap_id_op.c b/src/providers/ldap/sdap_id_op.c index 3a3de3643..856226635 100644 --- a/src/providers/ldap/sdap_id_op.c +++ b/src/providers/ldap/sdap_id_op.c @@ -608,6 +608,10 @@ static void sdap_id_op_connect_done(struct tevent_req *subreq) default: /* do not attempt to retry on errors like ENOMEM */ + DEBUG(SSSDBG_TRACE_FUNC, + "Marking the backend \"%s\" offline [%d]: %s\n", + conn_cache->id_conn->id_ctx->be->domain->name, + ret, sss_strerror(ret)); can_retry = false; is_offline = true; be_mark_offline(conn_cache->id_conn->id_ctx->be); -- cgit