Hello,

client-install: log exceptions from certmonger.request_cert

-- 
Petr^2 Spacek
From 7082057a37e00c2745d6e5561d78bd5ae307e96c Mon Sep 17 00:00:00 2001
From: Petr Spacek <pspa...@redhat.com>
Date: Fri, 1 Jul 2016 11:57:35 +0200
Subject: [PATCH] client-install: log exceptions from certmonger.request_cert

---
 client/ipa-client-install | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/client/ipa-client-install b/client/ipa-client-install
index cee202f89e0f40f4b7ee77e5c38a2c7d50e0dee9..8546ff8b0dbea0f28fba12a00c2ee1868ec7c3c6 100755
--- a/client/ipa-client-install
+++ b/client/ipa-client-install
@@ -1173,9 +1173,9 @@ def configure_certmonger(fstore, subject_base, cli_realm, hostname, options,
                                 subject=subject,
                                 principal=principal,
                                 passwd_fname=passwd_fname)
-    except Exception:
-        root_logger.error("%s request for host certificate failed",
-                          cmonger.service_name)
+    except Exception as ex:
+        root_logger.error("%s request for host certificate failed: %s",
+                          cmonger.service_name, ex)
 
 def configure_sssd_conf(fstore, cli_realm, cli_domain, cli_server, options, client_domain, client_hostname):
     try:
-- 
2.7.4

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to